Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yunqingabc
rt-thread
提交
1546274d
R
rt-thread
项目概览
yunqingabc
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1546274d
编写于
7月 03, 2014
作者:
G
geniusgogo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed bsp/frdm-k64f gcc compile
上级
857ac7e6
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
26 addition
and
11 deletion
+26
-11
bsp/frdm-k64f/K64FN1M0xxx12.ld
bsp/frdm-k64f/K64FN1M0xxx12.ld
+15
-2
bsp/frdm-k64f/device/SConscript
bsp/frdm-k64f/device/SConscript
+3
-3
bsp/frdm-k64f/device/TOOLCHAIN_GCC_ARM/startup_MK64F12.S
bsp/frdm-k64f/device/TOOLCHAIN_GCC_ARM/startup_MK64F12.S
+3
-1
bsp/frdm-k64f/rtconfig.py
bsp/frdm-k64f/rtconfig.py
+5
-5
未找到文件。
bsp/frdm-k64f/K64FN1M0xxx12.ld
浏览文件 @
1546274d
...
...
@@ -77,6 +77,19 @@ SECTIONS
*(.dtors)
*(.rodata*)
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
KEEP(*(FSymTab))
__fsymtab_end = .;
. = ALIGN(4);
__vsymtab_start = .;
KEEP(*(VSymTab))
__vsymtab_end = .;
. = ALIGN(4);
. = ALIGN(4);
_etext = .;
KEEP(*(.eh_frame*))
} > FLASH
...
...
@@ -127,7 +140,7 @@ SECTIONS
__data_end__ = .;
} > RAM
__bss_start = .;
.bss :
{
__bss_start__ = .;
...
...
@@ -135,7 +148,7 @@ SECTIONS
*(COMMON)
__bss_end__ = .;
} > RAM
__bss_end = .;
.heap :
{
__end__ = .;
...
...
bsp/frdm-k64f/device/SConscript
浏览文件 @
1546274d
...
...
@@ -5,18 +5,18 @@ from building import *
# get current directory
cwd
=
GetCurrentDir
()
path
=
[
cwd
,
cwd
+
'/MK64F12'
]
src
=
Glob
(
'MK64F12/*.c'
)
#add for startup script
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
src
=
src
+
[
'TOOLCHAIN_GCC_ARM/startup_MK64F12.S'
]
src
=
src
+
[
'TOOLCHAIN_GCC_ARM/startup.c'
]
path
+=
[
cwd
+
'TOOLCHAIN_GCC_ARM'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
src
=
src
+
[
'TOOLCHAIN_ARM_STD/startup_MK64F12.s'
]
# elif rtconfig.CROSS_TOOL == 'iar':
path
=
[
cwd
,
cwd
+
'/MK64F12'
]
#CPPDEFINES = ['']
group
=
DefineGroup
(
'Device'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
)
#CPPDEFINES = CPPDEFINES)
...
...
bsp/frdm-k64f/device/TOOLCHAIN_GCC_ARM/startup_MK64F12.S
浏览文件 @
1546274d
...
...
@@ -229,7 +229,9 @@ disable_watchdog:
ldr
r0
,
=
SystemInit
blx
r0
ldr
r0
,
=
_start
ldr
r0
,
=
init_data_bss
blx
r0
ldr
r0
,
=
main
bx
r0
.
pool
.
size
Reset_Handler
,
.
-
Reset_Handler
...
...
bsp/frdm-k64f/rtconfig.py
浏览文件 @
1546274d
...
...
@@ -12,10 +12,10 @@ if os.getenv('RTT_CC'):
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if
CROSS_TOOL
==
'gcc'
:
PLATFORM
=
'gcc'
EXEC_PATH
=
'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin'
EXEC_PATH
=
r
'C:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin'
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
r
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
'Not support iar yet!'
...
...
@@ -40,9 +40,9 @@ if PLATFORM == 'gcc':
OBJCPY
=
PREFIX
+
'objcopy'
DEVICE
=
' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
CFLAGS
=
DEVICE
+
' -g -Wall '
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp'
LFLAGS
=
DEVICE
+
' -lm -lgcc -lc'
+
' -Wl,--gc-sections,-Map=rtthread-k64f.map,-cref,-u,Reset_Handler -T K64FN1M0xxx12.ld'
CFLAGS
=
DEVICE
+
' -g -Wall
-D__ASSEMBLY__ -D__FPU_USED
'
AFLAGS
=
' -c'
+
DEVICE
+
' -x assembler-with-cpp
-Wa,-mimplicit-it=thumb
'
LFLAGS
=
DEVICE
+
' -lm -lgcc -lc'
+
'
-nostartfiles
-Wl,--gc-sections,-Map=rtthread-k64f.map,-cref,-u,Reset_Handler -T K64FN1M0xxx12.ld'
CPATH
=
''
LPATH
=
''
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录