Skip to content

Commit 90def7c

Browse files
authored
Merge pull request stm32duino#335 from edogaldo/Blue_F407VE_mini
New variant BLUE_F407VE_Mini
2 parents d092810 + e6c0afd commit 90def7c

File tree

8 files changed

+1496
-1
lines changed

8 files changed

+1496
-1
lines changed

CI/build/conf/cores_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
{
6161
"pattern": "STM32SD",
6262
"applicable": true,
63-
"boards": [ "DISCO_F746NG", "BLACK_F407VE" ]
63+
"boards": [ "DISCO_F746NG", "BLACK_F407VE", "BLUE_F407VE_Mini" ]
6464
},
6565
{
6666
"pattern": "Ethernet/",

boards.txt

+13
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,19 @@ GenF4.menu.pnum.BLACK_F407VE.build.product_line=STM32F407xx
522522
GenF4.menu.pnum.BLACK_F407VE.build.variant=BLACK_F407VE
523523
GenF4.menu.pnum.BLACK_F407VE.build.cmsis_lib_gcc=arm_cortexM4l_math
524524

525+
# Blue F407VE mini: http://wiki.stm32duino.com/index.php?title=Vcc-gnd.com_STM32F407VET6_Mini
526+
# Support: Serial1 (USART1 on PA10, PA9)
527+
# Default SPI: SPI (SPI1 on PB3,PB4,PB5)
528+
GenF4.menu.pnum.BLUE_F407VE_Mini=Blue F407VE mini
529+
GenF4.menu.pnum.BLUE_F407VE_Mini.upload.maximum_size=524288
530+
GenF4.menu.pnum.BLUE_F407VE_Mini.upload.maximum_data_size=131072
531+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.mcu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
532+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.board=BLUE_F407VE_Mini
533+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.series=STM32F4xx
534+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.product_line=STM32F407xx
535+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.variant=BLUE_F407VE_Mini
536+
GenF4.menu.pnum.BLUE_F407VE_Mini.build.cmsis_lib_gcc=arm_cortexM4l_math
537+
525538
# Upload menu
526539
GenF4.menu.upload_method.STLink=STLink
527540
GenF4.menu.upload_method.STLink.upload.protocol=STLink

variants/BLUE_F407VE_Mini/PeripheralPins.c

+358
Large diffs are not rendered by default.
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SYS_WKUP */
2+
#ifdef PWR_WAKEUP_PIN1
3+
SYS_WKUP1 = PA_0,
4+
#endif
5+
#ifdef PWR_WAKEUP_PIN2
6+
SYS_WKUP2 = NC,
7+
#endif
8+
#ifdef PWR_WAKEUP_PIN3
9+
SYS_WKUP3 = NC,
10+
#endif
11+
#ifdef PWR_WAKEUP_PIN4
12+
SYS_WKUP4 = NC,
13+
#endif
14+
#ifdef PWR_WAKEUP_PIN5
15+
SYS_WKUP5 = NC,
16+
#endif
17+
#ifdef PWR_WAKEUP_PIN6
18+
SYS_WKUP6 = NC,
19+
#endif
20+
#ifdef PWR_WAKEUP_PIN7
21+
SYS_WKUP7 = NC,
22+
#endif
23+
#ifdef PWR_WAKEUP_PIN8
24+
SYS_WKUP8 = NC,
25+
#endif

variants/BLUE_F407VE_Mini/ldscript.ld

+189
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
/*
2+
*****************************************************************************
3+
**
4+
5+
** File : LinkerScript.ld
6+
**
7+
** Abstract : Linker script for STM32F407VETx Device with
8+
** 512KByte FLASH, 128KByte RAM
9+
**
10+
** Set heap size, stack size and stack location according
11+
** to application requirements.
12+
**
13+
** Set memory bank area and size if external memory is used.
14+
**
15+
** Target : STMicroelectronics STM32
16+
**
17+
**
18+
** Distribution: The file is distributed as is, without any warranty
19+
** of any kind.
20+
**
21+
** (c)Copyright Ac6.
22+
** You may use this file as-is or modify it according to the needs of your
23+
** project. Distribution of this file (unmodified or modified) is not
24+
** permitted. Ac6 permit registered System Workbench for MCU users the
25+
** rights to distribute the assembled, compiled & linked contents of this
26+
** file as part of an application binary file, provided that it is built
27+
** using the System Workbench for MCU toolchain.
28+
**
29+
*****************************************************************************
30+
*/
31+
32+
/* Entry Point */
33+
ENTRY(Reset_Handler)
34+
35+
/* Highest address of the user mode stack */
36+
_estack = 0x20020000; /* end of RAM */
37+
/* Generate a link error if heap and stack don't fit into RAM */
38+
_Min_Heap_Size = 0x200; /* required amount of heap */
39+
_Min_Stack_Size = 0x400; /* required amount of stack */
40+
41+
/* Specify the memory areas */
42+
MEMORY
43+
{
44+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
45+
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
46+
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
47+
}
48+
49+
/* Define output sections */
50+
SECTIONS
51+
{
52+
/* The startup code goes first into FLASH */
53+
.isr_vector :
54+
{
55+
. = ALIGN(4);
56+
KEEP(*(.isr_vector)) /* Startup code */
57+
. = ALIGN(4);
58+
} >FLASH
59+
60+
/* The program code and other data goes into FLASH */
61+
.text ALIGN(8):
62+
{
63+
. = ALIGN(4);
64+
*(.text) /* .text sections (code) */
65+
*(.text*) /* .text* sections (code) */
66+
*(.glue_7) /* glue arm to thumb code */
67+
*(.glue_7t) /* glue thumb to arm code */
68+
*(.eh_frame)
69+
70+
KEEP (*(.init))
71+
KEEP (*(.fini))
72+
73+
. = ALIGN(4);
74+
_etext = .; /* define a global symbols at end of code */
75+
} >FLASH
76+
77+
/* Constant data goes into FLASH */
78+
.rodata ALIGN(4):
79+
{
80+
. = ALIGN(4);
81+
*(.rodata) /* .rodata sections (constants, strings, etc.) */
82+
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
83+
. = ALIGN(4);
84+
} >FLASH
85+
86+
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
87+
.ARM : {
88+
__exidx_start = .;
89+
*(.ARM.exidx*)
90+
__exidx_end = .;
91+
} >FLASH
92+
93+
.preinit_array :
94+
{
95+
PROVIDE_HIDDEN (__preinit_array_start = .);
96+
KEEP (*(.preinit_array*))
97+
PROVIDE_HIDDEN (__preinit_array_end = .);
98+
} >FLASH
99+
.init_array :
100+
{
101+
PROVIDE_HIDDEN (__init_array_start = .);
102+
KEEP (*(SORT(.init_array.*)))
103+
KEEP (*(.init_array*))
104+
PROVIDE_HIDDEN (__init_array_end = .);
105+
} >FLASH
106+
.fini_array :
107+
{
108+
PROVIDE_HIDDEN (__fini_array_start = .);
109+
KEEP (*(SORT(.fini_array.*)))
110+
KEEP (*(.fini_array*))
111+
PROVIDE_HIDDEN (__fini_array_end = .);
112+
} >FLASH
113+
114+
/* used by the startup to initialize data */
115+
_sidata = LOADADDR(.data);
116+
117+
/* Initialized data sections goes into RAM, load LMA copy after code */
118+
.data :
119+
{
120+
. = ALIGN(4);
121+
_sdata = .; /* create a global symbol at data start */
122+
*(.data) /* .data sections */
123+
*(.data*) /* .data* sections */
124+
125+
. = ALIGN(4);
126+
_edata = .; /* define a global symbol at data end */
127+
} >RAM AT> FLASH
128+
129+
_siccmram = LOADADDR(.ccmram);
130+
131+
/* CCM-RAM section
132+
*
133+
* IMPORTANT NOTE!
134+
* If initialized variables will be placed in this section,
135+
* the startup code needs to be modified to copy the init-values.
136+
*/
137+
.ccmram :
138+
{
139+
. = ALIGN(4);
140+
_sccmram = .; /* create a global symbol at ccmram start */
141+
*(.ccmram)
142+
*(.ccmram*)
143+
144+
. = ALIGN(4);
145+
_eccmram = .; /* create a global symbol at ccmram end */
146+
} >CCMRAM AT> FLASH
147+
148+
149+
/* Uninitialized data section */
150+
. = ALIGN(4);
151+
.bss :
152+
{
153+
/* This is used by the startup in order to initialize the .bss secion */
154+
_sbss = .; /* define a global symbol at bss start */
155+
__bss_start__ = _sbss;
156+
*(.bss)
157+
*(.bss*)
158+
*(COMMON)
159+
160+
. = ALIGN(4);
161+
_ebss = .; /* define a global symbol at bss end */
162+
__bss_end__ = _ebss;
163+
} >RAM
164+
165+
/* User_heap_stack section, used to check that there is enough RAM left */
166+
._user_heap_stack :
167+
{
168+
. = ALIGN(8);
169+
PROVIDE ( end = . );
170+
PROVIDE ( _end = . );
171+
. = . + _Min_Heap_Size;
172+
. = . + _Min_Stack_Size;
173+
. = ALIGN(8);
174+
} >RAM
175+
176+
177+
178+
/* Remove information from the standard libraries */
179+
/DISCARD/ :
180+
{
181+
libc.a ( * )
182+
libm.a ( * )
183+
libgcc.a ( * )
184+
}
185+
186+
.ARM.attributes 0 : { *(.ARM.attributes) }
187+
}
188+
189+

0 commit comments

Comments
 (0)