summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYilin Sun <[email protected]>2024-02-20 18:46:47 +0800
committerMeco Man <[email protected]>2024-02-20 18:24:21 -0500
commitfd4e390d1052a48efe245957d51f1c8ada1cacf2 (patch)
tree2a0213825ddfc71f599ed6538233b316e76c14fb
parente28ea7ad972a9992ab1f6c44e27f4e75d376d06b (diff)
[bsp][mcxa] FRDM-MCXA153: GNU toolchain: fixed flags.
Signed-off-by: Yilin Sun <[email protected]>
-rw-r--r--bsp/nxp/mcxa/frdm-mcxa153/rtconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/nxp/mcxa/frdm-mcxa153/rtconfig.py b/bsp/nxp/mcxa/frdm-mcxa153/rtconfig.py
index c276792d12..32714d5c3d 100644
--- a/bsp/nxp/mcxa/frdm-mcxa153/rtconfig.py
+++ b/bsp/nxp/mcxa/frdm-mcxa153/rtconfig.py
@@ -44,10 +44,10 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy'
STRIP = PREFIX + 'strip'
- DEVICE = ' -mcpu=' + CPU + ' -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
- CFLAGS = DEVICE + ' -Wall -D__FPU_PRESENT -eentry'
- AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb -D__START=entry'
- LFLAGS = DEVICE + ' -lm -lgcc -lc' + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T board/linker_scripts/MCXN947_cm33_core0_flash.ld'
+ DEVICE = ' -mcpu=' + CPU + '+nodsp' + ' -mthumb -mfloat-abi=soft -ffunction-sections -fdata-sections'
+ CFLAGS = DEVICE + ' -Wall'
+ AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -D__START=entry -D__STARTUP_CLEAR_BSS'
+ LFLAGS = DEVICE + ' -specs=nano.specs -specs=nosys.specs -Wl,--defsym=__heap_size__=0x2000,--gc-sections,-Map=rtthread.map,--print-memory-usage -Tboard/linker_scripts/MCXA153_flash.ld'
CPATH = ''
LPATH = ''