Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2301_76519099
rt-thread
提交
796c4934
R
rt-thread
项目概览
2301_76519099
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
1
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
796c4934
编写于
11月 01, 2014
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] Fix the gcc compiling issue in LPC408x bsp
上级
3bf721a6
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
31 addition
and
23 deletion
+31
-23
bsp/lpc408x/Libraries/Device/NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s
...177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s
+22
-20
bsp/lpc408x/SConstruct
bsp/lpc408x/SConstruct
+1
-0
bsp/lpc408x/rtconfig.h
bsp/lpc408x/rtconfig.h
+2
-2
bsp/lpc408x/rtconfig.py
bsp/lpc408x/rtconfig.py
+6
-1
未找到文件。
bsp/lpc408x/Libraries/Device/NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s
浏览文件 @
796c4934
...
@@ -130,8 +130,10 @@ CRP_Value:
...
@@ -130,8 +130,10 @@ CRP_Value:
.
section
.
cs3
.
reset
,
"x"
,%
progbits
.
section
.
cs3
.
reset
,
"x"
,%
progbits
.
thumb_func
.
thumb_func
.
globl
__cs3_reset_cortex_m
.
globl
__cs3_reset_cortex_m
.
globl
Reset_Handler
.
type
__cs3_reset_cortex_m
,
%
function
.
type
__cs3_reset_cortex_m
,
%
function
__cs3_reset_cortex_m
:
__cs3_reset_cortex_m
:
Reset_Handler
:
.
fnstart
.
fnstart
.
ifdef
RAM_MODE
.
ifdef
RAM_MODE
/*
Clear
.
bss
section
(
Zero
init
)
*/
/*
Clear
.
bss
section
(
Zero
init
)
*/
...
@@ -154,7 +156,7 @@ BSSIsEmpty:
...
@@ -154,7 +156,7 @@ BSSIsEmpty:
.
else
.
else
LDR
R0
,
=
SystemInit
LDR
R0
,
=
SystemInit
BLX
R0
BLX
R0
LDR
R0
,=
_start
LDR
R0
,=
main
BX
R0
BX
R0
.
endif
.
endif
.
pool
.
pool
...
...
bsp/lpc408x/SConstruct
浏览文件 @
796c4934
...
@@ -15,6 +15,7 @@ TARGET = 'rtthread-%s.%s' % (rtconfig.BOARD_NAME, rtconfig.TARGET_EXT)
...
@@ -15,6 +15,7 @@ TARGET = 'rtthread-%s.%s' % (rtconfig.BOARD_NAME, rtconfig.TARGET_EXT)
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
...
...
bsp/lpc408x/rtconfig.h
浏览文件 @
796c4934
...
@@ -104,8 +104,8 @@
...
@@ -104,8 +104,8 @@
// </section>
// </section>
// <section name="LIBC" description="C Runtime library setting" default="always" >
// <section name="LIBC" description="C Runtime library setting" default="always" >
// <bool name="RT_USING_
NEWLIB" description="Using newlib library, only available under GNU GCC
" default="true" />
// <bool name="RT_USING_
LIBC" description="Using C library
" default="true" />
// #define RT_USING_
NEWLIB
// #define RT_USING_
LIBC
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
// <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
#define RT_USING_PTHREADS
#define RT_USING_PTHREADS
// </section>
// </section>
...
...
bsp/lpc408x/rtconfig.py
浏览文件 @
796c4934
...
@@ -30,6 +30,7 @@ if PLATFORM == 'gcc':
...
@@ -30,6 +30,7 @@ if PLATFORM == 'gcc':
# toolchains
# toolchains
PREFIX
=
'arm-none-eabi-'
PREFIX
=
'arm-none-eabi-'
CC
=
PREFIX
+
'gcc'
CC
=
PREFIX
+
'gcc'
CXX
=
PREFIX
+
'g++'
AS
=
PREFIX
+
'gcc'
AS
=
PREFIX
+
'gcc'
AR
=
PREFIX
+
'ar'
AR
=
PREFIX
+
'ar'
LINK
=
PREFIX
+
'gcc'
LINK
=
PREFIX
+
'gcc'
...
@@ -52,11 +53,14 @@ if PLATFORM == 'gcc':
...
@@ -52,11 +53,14 @@ if PLATFORM == 'gcc':
else
:
else
:
CFLAGS
+=
' -O2'
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
POST_ACTION
=
OBJCPY
+
' -O binary $TARGET rtthread.bin
\n
'
+
SIZE
+
' $TARGET
\n
'
POST_ACTION
=
OBJCPY
+
' -O binary $TARGET rtthread.bin
\n
'
+
SIZE
+
' $TARGET
\n
'
elif
PLATFORM
==
'armcc'
:
elif
PLATFORM
==
'armcc'
:
# toolchains
# toolchains
CC
=
'armcc'
CC
=
'armcc'
CXX
=
'armcc'
AS
=
'armasm'
AS
=
'armasm'
AR
=
'armar'
AR
=
'armar'
LINK
=
'armlink'
LINK
=
'armlink'
...
@@ -70,6 +74,7 @@ elif PLATFORM == 'armcc':
...
@@ -70,6 +74,7 @@ elif PLATFORM == 'armcc':
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
CXXFLAGS
=
CFLAGS
EXEC_PATH
+=
'/arm/bin40/'
EXEC_PATH
+=
'/arm/bin40/'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录