Browse Source

[bsp][mm32l3xx]Fix the error-reporting problem when using the "sconds--dist" command.

Signed-off-by: Willian Chan <chentingwei@rt-thread.com>
Willian Chan 6 years ago
parent
commit
74cfa9e5fb
2 changed files with 2 additions and 4 deletions
  1. 1 3
      bsp/mm32l3xx/Libraries/SConscript
  2. 1 1
      bsp/mm32l3xx/rtconfig.py

+ 1 - 3
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']

+ 1 - 1
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'