From 49b86c6a2111a3b26dfcc7092b7e4f82ae2a3cd6 Mon Sep 17 00:00:00 2001 From: WangQiang Date: Thu, 6 Aug 2020 18:03:15 +0800 Subject: [PATCH] fixed gcc assembly option and objcopy option in rtconfig.py for imxrt1052-nxp-evk --- bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py b/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py index 44de4dc1df..1c90a8bdaa 100644 --- a/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py +++ b/bsp/imxrt/imxrt1052-nxp-evk/rtconfig.py @@ -53,6 +53,9 @@ if PLATFORM == 'gcc': CPATH = '' LPATH = '' + AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA' + AFLAGS += ' -D__STARTUP_CLEAR_BSS' + if BUILD == 'debug': CFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2' @@ -60,7 +63,7 @@ if PLATFORM == 'gcc': else: CFLAGS += ' -O2 -Os' - POST_ACTION = OBJCPY + ' -O binary --remove-section=.boot_data --remove-section=.image_vertor_table --remove-section=.ncache $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' # module setting CXXFLAGS = ' -Woverloaded-virtual -fno-exceptions -fno-rtti '