Skip to content

Commit 4d3c370

Browse files
author
rogerclarkmelbourne
committed
added bootloader and non bootloder version of STM32F103RE to STM32F103R series boards
1 parent 6408adc commit 4d3c370

3 files changed

Lines changed: 94 additions & 10 deletions

File tree

STM32F1/boards.txt

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,29 +159,41 @@ genericSTM32.build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1
159159

160160

161161
##############################################################
162-
genericSTM32F103R.name=Generic STM32F103RE
163-
genericSTM32F103R.upload.maximum_size=492000
164-
genericSTM32F103R.upload.ram.maximum_size=61000
165-
genericSTM32F103R.upload.flash.maximum_size=492000
162+
genericSTM32F103R.name=Generic STM32F103R series
163+
166164
genericSTM32F103R.build.error_led_port=GPIOA
167165
genericSTM32F103R.build.error_led_pin=5
168166
genericSTM32F103R.build.variant=generic_stm32f103rxx
169-
genericSTM32F103R.build.extra_flags=-DMCU_STM32F103RE -mthumb -march=armv7-m -D__STM32F1__
170-
genericSTM32F103R.build.ldscript=ld/jtag.ld
171167

172-
genericSTM32F103R.upload.tool=serial_upload
173168
genericSTM32F103R.upload.protocol=maple_dfu
174169
genericSTM32F103R.upload.use_1200bps_touch=false
175170
genericSTM32F103R.upload.file_type=bin
176-
#genericSTM32F103R.upload.usbID=1EAF:0003
177-
#genericSTM32F103R.upload.altID=1
178-
#genericSTM32F103R.upload.auto_reset=true
171+
genericSTM32F103R.upload.usbID=1EAF:0003
172+
genericSTM32F103R.upload.altID=1
173+
genericSTM32F103R.upload.auto_reset=true
179174
genericSTM32F103R.build.mcu=cortex-m3
180175
genericSTM32F103R.build.f_cpu=72000000L
181176
genericSTM32F103R.build.board=GENERIC_STM32F103R
182177
genericSTM32F103R.build.core=maple
183178
genericSTM32F103R.build.vect=VECT_TAB_FLASH
184179

180+
genericSTM32F103R.menu.device_variant.STM32F103RE=STM32F103RE
181+
genericSTM32F103R.menu.device_variant.STM32F103RE.build.extra_flags=-DMCU_STM32F103RE -mthumb -march=armv7-m -D__STM32F1__
182+
genericSTM32F103R.menu.device_variant.STM32F103RE.upload.maximum_size=492000
183+
genericSTM32F103R.menu.device_variant.STM32F103RE.upload.ram.maximum_size=61000
184+
genericSTM32F103R.menu.device_variant.STM32F103RE.upload.flash.maximum_size=492000
185+
genericSTM32F103R.menu.device_variant.STM32F103RE.build.ldscript=ld/stm32f103re.ld
186+
genericSTM32F103R.menu.device_variant.STM32F103RE.upload.tool=serial_upload
187+
188+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader=STM32F103RE + bootloader
189+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.build.extra_flags=-DMCU_STM32F103RE -mthumb -march=armv7-m -D__STM32F1__ -DBOOTLOADER_maple
190+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.upload.maximum_size=262144
191+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.upload.ram.maximum_size=492152
192+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.upload.flash.maximum_size=262144
193+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.build.ldscript=ld/stm32f103re-bootloader.ld
194+
genericSTM32F103R.menu.device_variant.STM32F103REbootloader.upload.tool=maple_upload
195+
196+
185197
##############################################################
186198

187199
microduino32_flash.name=Microduino Core STM32 to Flash
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* libmaple linker script for "JTAG" builds.
3+
*
4+
* A "JTAG" build puts .text (and .rodata) in Flash, and
5+
* .data/.bss/heap (of course) in SRAM, but links starting at the
6+
* Flash and SRAM starting addresses (0x08000000 and 0x20000000
7+
* respectively). This will wipe out a Maple bootloader if there's one
8+
* on the board, so only use this if you know what you're doing.
9+
*
10+
* Of course, a "JTAG" build is perfectly usable for upload over SWD,
11+
* the system memory bootloader, etc. The name is just a historical
12+
* artifact.
13+
*/
14+
15+
/*
16+
* This pulls in the appropriate MEMORY declaration from the right
17+
* subdirectory of stm32/mem/ (the environment must call ld with the
18+
* right include directory flags to make this happen). Boards can also
19+
* use this file to use any of libmaple's memory-related hooks (like
20+
* where the heap should live).
21+
*/
22+
MEMORY
23+
{
24+
ram (rwx) : ORIGIN = 0x20000C00, LENGTH = 61K
25+
rom (rx) : ORIGIN = 0x08005000, LENGTH = 492K
26+
}
27+
28+
29+
/* Provide memory region aliases for common.inc */
30+
REGION_ALIAS("REGION_TEXT", rom);
31+
REGION_ALIAS("REGION_DATA", ram);
32+
REGION_ALIAS("REGION_BSS", ram);
33+
REGION_ALIAS("REGION_RODATA", rom);
34+
35+
/* Let common.inc handle the real work. */
36+
INCLUDE common.inc
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* libmaple linker script for "JTAG" builds.
3+
*
4+
* A "JTAG" build puts .text (and .rodata) in Flash, and
5+
* .data/.bss/heap (of course) in SRAM, but links starting at the
6+
* Flash and SRAM starting addresses (0x08000000 and 0x20000000
7+
* respectively). This will wipe out a Maple bootloader if there's one
8+
* on the board, so only use this if you know what you're doing.
9+
*
10+
* Of course, a "JTAG" build is perfectly usable for upload over SWD,
11+
* the system memory bootloader, etc. The name is just a historical
12+
* artifact.
13+
*/
14+
15+
/*
16+
* This pulls in the appropriate MEMORY declaration from the right
17+
* subdirectory of stm32/mem/ (the environment must call ld with the
18+
* right include directory flags to make this happen). Boards can also
19+
* use this file to use any of libmaple's memory-related hooks (like
20+
* where the heap should live).
21+
*/
22+
MEMORY
23+
{
24+
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
25+
rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K
26+
}
27+
28+
29+
/* Provide memory region aliases for common.inc */
30+
REGION_ALIAS("REGION_TEXT", rom);
31+
REGION_ALIAS("REGION_DATA", ram);
32+
REGION_ALIAS("REGION_BSS", ram);
33+
REGION_ALIAS("REGION_RODATA", rom);
34+
35+
/* Let common.inc handle the real work. */
36+
INCLUDE common.inc

0 commit comments

Comments
 (0)