Skip to content

Commit 49b86c6

Browse files
committed
fixed gcc assembly option and objcopy option in rtconfig.py for imxrt1052-nxp-evk
1 parent 24ebc3d commit 49b86c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
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 '

0 commit comments

Comments
 (0)