Skip to content

Commit c7bdca3

Browse files
authored
Merge pull request RT-Thread#3792 from xfwangqiang/gcc-fix
fixed gcc assembly option in rtconfig.py for imxrt1064-nxp-evk
2 parents 671cf26 + 49b86c6 commit c7bdca3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,17 @@
5353
CPATH = ''
5454
LPATH = ''
5555

56+
AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA'
57+
AFLAGS += ' -D__STARTUP_CLEAR_BSS'
58+
5659
if BUILD == 'debug':
5760
CFLAGS += ' -gdwarf-2'
5861
AFLAGS += ' -gdwarf-2'
5962
CFLAGS += ' -O0'
6063
else:
6164
CFLAGS += ' -O2 -Os'
6265

63-
POST_ACTION = OBJCPY + ' -O binary --remove-section=.boot_data --remove-section=.image_vertor_table --remove-section=.ncache $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
66+
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
6467

6568
# module setting
6669
CXXFLAGS = ' -Woverloaded-virtual -fno-exceptions -fno-rtti '

bsp/imxrt/imxrt1064-nxp-evk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
### 快速上手
7373

74-
本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,暂不支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
74+
本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,以及GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
7575

7676
#### 硬件连接
7777

@@ -115,4 +115,4 @@ msh >
115115

116116
维护人:
117117

118-
- [王强](https://github.com/xfwangqiang), 邮箱:<[email protected]>
118+
- [王强](https://github.com/xfwangqiang, https://gitee.com/xfwangqiang), 邮箱:<[email protected]>

bsp/imxrt/imxrt1064-nxp-evk/rtconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
CPATH = ''
5454
LPATH = ''
5555

56+
AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA'
57+
AFLAGS += ' -D__STARTUP_CLEAR_BSS'
58+
5659
if BUILD == 'debug':
5760
CFLAGS += ' -gdwarf-2'
5861
AFLAGS += ' -gdwarf-2'

0 commit comments

Comments
 (0)