From 5b1235f5f542a69d5178e795329c577c0f998251 Mon Sep 17 00:00:00 2001 From: xieyangrun Date: Thu, 31 Aug 2017 18:57:59 +0800 Subject: [PATCH] add scons cmd build --- bsp/samd21/SAM_D2X_RTT.sct | 15 +++++++++++++++ bsp/samd21/rtconfig.py | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 bsp/samd21/SAM_D2X_RTT.sct diff --git a/bsp/samd21/SAM_D2X_RTT.sct b/bsp/samd21/SAM_D2X_RTT.sct new file mode 100644 index 0000000000..45489c5687 --- /dev/null +++ b/bsp/samd21/SAM_D2X_RTT.sct @@ -0,0 +1,15 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x00000000 0x00040000 { ; load region size_region + ER_IROM1 0x00000000 0x00040000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x20000000 0x00008000 { ; RW data + .ANY (+RW +ZI) + } +} + diff --git a/bsp/samd21/rtconfig.py b/bsp/samd21/rtconfig.py index 3a4a499043..edd1d7358d 100644 --- a/bsp/samd21/rtconfig.py +++ b/bsp/samd21/rtconfig.py @@ -71,8 +71,9 @@ elif PLATFORM == 'armcc': DEVICE = ' --device DARMSTM' CFLAGS = DEVICE + ' --apcs=interwork' AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-SAM_D2x.map --strict --scatter SAM_D2X_RTT.scf' + LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-SAM_D2x.map --strict --scatter SAM_D2X_RTT.sct' + CFLAGS += ' --c99' CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB'