Skip to content

Commit 6408adc

Browse files
author
rogerclarkmelbourne
committed
Added experimental Maple RET6 board for @skyng22003
1 parent 5ae7142 commit 6408adc

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

STM32F1/boards.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,35 @@ maple.build.error_led_pin=5
9494
maple.build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1
9595

9696

97+
##############################################################
98+
mapleRET6.name=LeafLabs Maple RET6 to Flash
99+
100+
mapleRET6.upload.tool=maple_upload
101+
mapleRET6.upload.protocol=maple_dfu
102+
mapleRET6.upload.maximum_size=492000
103+
mapleRET6.upload.use_1200bps_touch=false
104+
mapleRET6.upload.file_type=bin
105+
mapleRET6.upload.ram.maximum_size=61000
106+
mapleRET6.upload.flash.maximum_size=492000
107+
mapleRET6.upload.usbID=1EAF:0003
108+
mapleRET6.upload.altID=1
109+
mapleRET6.upload.auto_reset=true
110+
111+
mapleRET6.build.mcu=cortex-m3
112+
mapleRET6.build.f_cpu=72000000L
113+
mapleRET6.build.board=MAPLE_RET6
114+
mapleRET6.build.core=maple
115+
mapleRET6.build.extra_flags=-DMCU_STM32F103RE -mthumb -DBOOTLOADER_maple -march=armv7-m -D__STM32F1__
116+
117+
mapleRET6.build.ldscript=ld/flashRET6.ld
118+
mapleRET6.build.variant=maple
119+
mapleRET6.build.variant_system_lib=libmapleRET6.a
120+
mapleRET6.build.vect=VECT_TAB_FLASH
121+
mapleRET6.build.density=STM32_HIGH_DENSITY
122+
mapleRET6.build.error_led_port=GPIOA
123+
mapleRET6.build.error_led_pin=5
124+
mapleRET6.build.gcc_ver=gcc-arm-none-eabi-4.8.3-2014q1
125+
97126
##############################################################
98127
genericSTM32.name=STM32 to Flash - No bootloader
99128

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* libmaple linker script for "Flash" builds.
3+
*
4+
* A Flash build puts .text (and .rodata) in Flash, and
5+
* .data/.bss/heap (of course) in SRAM, but offsets the sections by
6+
* enough space to store the Maple bootloader, which lives in low
7+
* Flash and uses low memory.
8+
*/
9+
10+
/*
11+
* This pulls in the appropriate MEMORY declaration from the right
12+
* subdirectory of stm32/mem/ (the environment must call ld with the
13+
* right include directory flags to make this happen). Boards can also
14+
* use this file to use any of libmaple's memory-related hooks (like
15+
* where the heap should live).
16+
*/
17+
MEMORY
18+
{
19+
ram (rwx) : ORIGIN = 0x20000C00, LENGTH = 61K
20+
rom (rx) : ORIGIN = 0x08005000, LENGTH = 492K
21+
}
22+
23+
/* Provide memory region aliases for common.inc */
24+
REGION_ALIAS("REGION_TEXT", rom);
25+
REGION_ALIAS("REGION_DATA", ram);
26+
REGION_ALIAS("REGION_BSS", ram);
27+
REGION_ALIAS("REGION_RODATA", rom);
28+
29+
/* Let common.inc handle the real work. */
30+
INCLUDE common.inc

0 commit comments

Comments
 (0)