diff options
| author | Willian Chan <[email protected]> | 2019-06-17 15:24:41 +0800 |
|---|---|---|
| committer | Willian Chan <[email protected]> | 2019-06-17 15:24:49 +0800 |
| commit | 74cfa9e5fbd69ed92117ca1f4b0ae99fb659ddb5 (patch) | |
| tree | 130aece6c2753dcb125853e10bdfcfdd0b0c8c5b | |
| parent | 2599bc238fc04d57ec1779cd8f10c75ba3965223 (diff) | |
[bsp][mm32l3xx]Fix the error-reporting problem when using the "sconds--dist" command.
Signed-off-by: Willian Chan <[email protected]>
| -rw-r--r-- | bsp/mm32l3xx/Libraries/SConscript | 4 | ||||
| -rw-r--r-- | bsp/mm32l3xx/rtconfig.py | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/bsp/mm32l3xx/Libraries/SConscript b/bsp/mm32l3xx/Libraries/SConscript index 91b6d144b3..14e95cd282 100644 --- a/bsp/mm32l3xx/Libraries/SConscript +++ b/bsp/mm32l3xx/Libraries/SConscript @@ -7,9 +7,7 @@ CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3x src += Glob('MM32L3xx/HAL_lib/src/*.c') CPPDEFINES = ['USE_STDPERIPH_DRIVER'] -if rtconfig.CROSS_TOOL == 'gcc': - src += ['MM32L3xx/Source/GCC_StartAsm/startup_MM32L3xx.s'] -elif rtconfig.CROSS_TOOL == 'keil': +if rtconfig.CROSS_TOOL == 'keil': src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s'] elif rtconfig.CROSS_TOOL == 'iar': src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s'] diff --git a/bsp/mm32l3xx/rtconfig.py b/bsp/mm32l3xx/rtconfig.py index 241b1456fa..1e87cf72e0 100644 --- a/bsp/mm32l3xx/rtconfig.py +++ b/bsp/mm32l3xx/rtconfig.py @@ -42,7 +42,7 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' - DEVICE = ' -mcpu=' + CPU + ' -ffunction-sections -fdata-sections -Wall' + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -Wall' CFLAGS = DEVICE + ' -std=c99' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T drivers/linker_scripts/link.lds' |
