From abeb9500d0ad24d8a068ed430185e9e2d2f4ae3b Mon Sep 17 00:00:00 2001 From: charlown Date: Mon, 6 Sep 2021 13:42:48 +0800 Subject: [PATCH] fix rtconfig.py param: DEVICE = cortex-m3 in other platform. --- bsp/wch/arm/ch32f103c8-core/rtconfig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/wch/arm/ch32f103c8-core/rtconfig.py b/bsp/wch/arm/ch32f103c8-core/rtconfig.py index ad74079a8..5f3733857 100644 --- a/bsp/wch/arm/ch32f103c8-core/rtconfig.py +++ b/bsp/wch/arm/ch32f103c8-core/rtconfig.py @@ -43,7 +43,7 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' - DEVICE = ' -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections' + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' CFLAGS = DEVICE + ' -Dgcc' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds' @@ -114,7 +114,7 @@ elif PLATFORM == 'iar': CFLAGS += ' --no_clustering' CFLAGS += ' --no_scheduling' CFLAGS += ' --endian=little' - CFLAGS += ' --cpu=Cortex-M0' + CFLAGS += ' --cpu=Cortex-M3' CFLAGS += ' -e' CFLAGS += ' --fpu=None' CFLAGS += ' --dlib_config "' + EXEC_PATH + '/arm/INC/c/DLib_Config_Normal.h"' @@ -124,7 +124,7 @@ elif PLATFORM == 'iar': AFLAGS += ' -s+' AFLAGS += ' -w+' AFLAGS += ' -r' - AFLAGS += ' --cpu Cortex-M0' + AFLAGS += ' --cpu Cortex-M3' AFLAGS += ' --fpu None' AFLAGS += ' -S' -- GitLab