Skip to content

Commit 5fd0efa

Browse files
author
rogerclarkmelbourne
committed
Updated and renames STM32 to Flash, so that STLink works better on Windows. Thanks to Rick Kimball, on the stm32duino.com forum
1 parent 3d17dbc commit 5fd0efa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

STM32F1/boards.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,18 @@ mapleRET6.build.error_led_pin=5
107107
mapleRET6.build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1
108108

109109
##############################################################
110-
genericSTM32.name=STM32 to Flash - No bootloader
110+
genericSTM32.name=STM32F103C8 to Flash - No bootloader
111111

112112
genericSTM32.menu.upload_method.serialMethod=Serial
113113
genericSTM32.menu.upload_method.serialMethod.upload.protocol=maple_serial
114114
genericSTM32.menu.upload_method.serialMethod.upload.tool=serial_upload
115+
genericSTM32.menu.upload_method.serialMethod.build.extra_flags=-DMCU_STM32F103CB -mthumb -march=armv7-m -D__STM32F1__
116+
115117
genericSTM32.menu.upload_method.STLinkMethod=STLink
116118
genericSTM32.menu.upload_method.STLinkMethod.upload.protocol=STLink
117119
genericSTM32.menu.upload_method.STLinkMethod.upload.tool=stlink_upload
120+
genericSTM32.menu.upload_method.STLinkMethod.build.extra_flags=-DMCU_STM32F103CB -mthumb -march=armv7-m -D__STM32F1__ -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
121+
118122

119123
genericSTM32.upload.maximum_size=108000
120124
genericSTM32.upload.use_1200bps_touch=false
@@ -130,7 +134,7 @@ genericSTM32.build.mcu=cortex-m3
130134
genericSTM32.build.f_cpu=72000000L
131135
genericSTM32.build.board=GENERIC_STM32
132136
genericSTM32.build.core=maple
133-
genericSTM32.build.extra_flags=-DMCU_STM32F103CB -mthumb -march=armv7-m -D__STM32F1__
137+
134138
genericSTM32.build.ldscript=ld/jtag.ld
135139
genericSTM32.build.variant=maple_mini
136140
genericSTM32.build.variant_system_lib=libmaple.a

0 commit comments

Comments
 (0)