summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorcharlown <[email protected]>2021-09-06 13:42:48 +0800
committercharlown <[email protected]>2021-09-06 13:42:48 +0800
commitabeb9500d0ad24d8a068ed430185e9e2d2f4ae3b (patch)
tree0494488989d662c1fb8587dc32e61d60bfd21043 /bsp
parent5169360e218d4105b8e5c09fdd5e44c84305615d (diff)
fix rtconfig.py param: DEVICE = cortex-m3 in other platform.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/wch/arm/ch32f103c8-core/rtconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/wch/arm/ch32f103c8-core/rtconfig.py b/bsp/wch/arm/ch32f103c8-core/rtconfig.py
index ad74079a8f..5f37338573 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'