summaryrefslogtreecommitdiff
path: root/bsp/nxp
diff options
context:
space:
mode:
authorandeyqi <[email protected]>2024-06-27 14:32:17 +0800
committerMeco Man <[email protected]>2024-06-27 23:04:56 +0800
commite69a7ccfa3a25d0ecc6d99da93c47aa96c6d8317 (patch)
treef0fabb6d9562db7bb364fbce33aafd1e63253b2d /bsp/nxp
parent76e123d8ca35ceb926fd15370656a1fbfa724de7 (diff)
[bsp][nxp] Update mcxn236 & mcxn947 LFLAGS config.
Diffstat (limited to 'bsp/nxp')
-rw-r--r--bsp/nxp/mcx/mcxn/frdm-mcxn236/rtconfig.py6
-rw-r--r--bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn236/rtconfig.py b/bsp/nxp/mcx/mcxn/frdm-mcxn236/rtconfig.py
index abbdcf514a..0d8b065617 100644
--- a/bsp/nxp/mcx/mcxn/frdm-mcxn236/rtconfig.py
+++ b/bsp/nxp/mcx/mcxn/frdm-mcxn236/rtconfig.py
@@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu ' + CPU + '.fp.sp'
CFLAGS = DEVICE + ' --apcs=interwork'
AFLAGS = DEVICE
- LFLAGS = DEVICE + ' --libpath "' + EXEC_PATH + '/ARM/ARMCC/lib" --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter "./LPC55S69_cm33_core0_flash.scf" '
+ LFLAGS = DEVICE + ' --libpath "' + EXEC_PATH + '/ARM/ARMCC/lib" --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter "board/linker_scripts/MCXN236_flash" '
LFLAGS += ' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
@@ -122,7 +122,7 @@ elif PLATFORM == 'armclang':
AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
LFLAGS += ' --list rt-thread.map '
- LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
+ LFLAGS += r' --strict --scatter "board/linker_scripts/MCXN236_flash" '
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'
@@ -180,7 +180,7 @@ elif PLATFORM == 'iccarm':
else:
CFLAGS += ' -Oh'
- LFLAGS = ' --config "board/linker_scripts/MCXN947_cm33_core0_flash.icf"'
+ LFLAGS = ' --config "board/linker_scripts/MCXN236_flash.icf"'
LFLAGS += ' --redirect _Printf=_PrintfTiny'
LFLAGS += ' --redirect _Scanf=_ScanfSmall'
LFLAGS += ' --entry __iar_program_start'
diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.py b/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.py
index d21ad58c87..2a4e847bdd 100644
--- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.py
+++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.py
@@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
DEVICE = ' --cpu ' + CPU + '.fp.sp'
CFLAGS = DEVICE + ' --apcs=interwork'
AFLAGS = DEVICE
- LFLAGS = DEVICE + ' --libpath "' + EXEC_PATH + '/ARM/ARMCC/lib" --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter "./LPC55S69_cm33_core0_flash.scf" '
+ LFLAGS = DEVICE + ' --libpath "' + EXEC_PATH + '/ARM/ARMCC/lib" --info sizes --info totals --info unused --info veneers --list rtthread.map --scatter "board/linker_scripts/MCXN947_cm33_core0_flash" '
LFLAGS += ' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
@@ -122,7 +122,7 @@ elif PLATFORM == 'armclang':
AFLAGS = DEVICE + ' --apcs=interwork '
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers '
LFLAGS += ' --list rt-thread.map '
- LFLAGS += r' --strict --scatter "board\linker_scripts\link.sct" '
+ LFLAGS += r' --strict --scatter "board/linker_scripts/MCXN947_cm33_core0_flash" '
CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCLANG/include'
LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCLANG/lib'