Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0942d2a

Browse files
committed
variant(f4): add the STM32F411E-DISCO board
Signed-off-by: John Gietzen <john@gietzen.us>
1 parentd35fec3 commit0942d2a

File tree

7 files changed

+685
-2
lines changed

7 files changed

+685
-2
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
191191
|:green_heart:| STM32F100RB|[STM32VLDISCOVERY](https://www.st.com/en/evaluation-tools/stm32vldiscovery.html)| 0.2.1||
192192
|:green_heart:| STM32F303VC|[STM32F3DISCOVERY](https://www.st.com/en/evaluation-tools/stm32f3discovery.html)|*2.0.0*||
193193
|:green_heart:| STM32F407VG|[STM32F407G-DISC1](http://www.st.com/en/evaluation-tools/stm32f4discovery.html)|*0.1.0*||
194+
|:yellow_heart:| STM32F411VE|[STM32F411E-DISCO](https://www.st.com/en/evaluation-tools/32f411ediscovery.html)|*2.12.0*||
194195
|:green_heart:| STM32F413ZH|[32F413HDISCOVERY](https://www.st.com/en/evaluation-tools/32f413hdiscovery.html)|*1.9.0*||
195196
|:green_heart:| STM32F746NG|[STM32F746G-DISCOVERY](http://www.st.com/en/evaluation-tools/32f746gdiscovery.html)|*0.1.0*||
196197
|:green_heart:| STM32G031J6|[STM32G0316-DISCO](https://www.st.com/en/evaluation-tools/stm32g0316-disco.html)|*1.9.0*||
@@ -389,6 +390,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
389390
|:green_heart:| STM32F410T8<br>STM32F410TB| Generic Board|*2.4.0*||
390391
|:green_heart:| STM32F411CC<br>STM32F411CE| Generic Board|*1.9.0*||
391392
|:green_heart:| STM32F411RC<br>STM32F411RE| Generic Board|*1.9.0*||
393+
|:yellow_heart:| STM32F411VC<br>STM32F411VE| Generic Board|*2.12.0*||
392394
|:green_heart:| STM32F412CE<br>STM32F412CG| Generic Board|*1.9.0*||
393395
|:green_heart:| STM32F412RE<br>STM32F412RG| Generic Board|*1.9.0*||
394396
|:green_heart:| STM32F412ZE<br>STM32F412ZG| Generic Board|*2.6.0*||

‎boards.txt‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,20 @@ Disco.menu.pnum.DISCO_F407VG.build.variant=STM32F4xx/F407V(E-G)T_F417V(E-G)T
14211421
Disco.menu.pnum.DISCO_F407VG.openocd.target=stm32f4x
14221422
Disco.menu.pnum.DISCO_F407VG.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F407.svd
14231423

1424+
# DISCO_F411VE board
1425+
Disco.menu.pnum.DISCO_F411VE=STM32F411E-DISCO
1426+
Disco.menu.pnum.DISCO_F411VE.upload.maximum_size=524288
1427+
Disco.menu.pnum.DISCO_F411VE.upload.maximum_data_size=131072
1428+
Disco.menu.pnum.DISCO_F411VE.build.mcu=cortex-m4
1429+
Disco.menu.pnum.DISCO_F411VE.build.fpu=-mfpu=fpv4-sp-d16
1430+
Disco.menu.pnum.DISCO_F411VE.build.float-abi=-mfloat-abi=hard
1431+
Disco.menu.pnum.DISCO_F411VE.build.board=DISCO_F411VE
1432+
Disco.menu.pnum.DISCO_F411VE.build.series=STM32F4xx
1433+
Disco.menu.pnum.DISCO_F411VE.build.product_line=STM32F411xE
1434+
Disco.menu.pnum.DISCO_F411VE.build.variant=STM32F4xx/F411V(C-E)T
1435+
Disco.menu.pnum.DISCO_F411VE.openocd.target=stm32f4x
1436+
Disco.menu.pnum.DISCO_F411VE.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F411.svd
1437+
14241438
# DISCO_F413ZH board
14251439
Disco.menu.pnum.DISCO_F413ZH=STM32F413H-DISCO
14261440
Disco.menu.pnum.DISCO_F413ZH.node=DIS_F413ZH
@@ -5258,6 +5272,24 @@ GenF4.menu.pnum.GENERIC_F411RETX.build.product_line=STM32F411xE
52585272
GenF4.menu.pnum.GENERIC_F411RETX.build.variant=STM32F4xx/F411R(C-E)T
52595273
GenF4.menu.pnum.GENERIC_F411RETX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F411.svd
52605274

5275+
# Generic F411VCTx
5276+
GenF4.menu.pnum.GENERIC_F411VCTX=Generic F411VCTx
5277+
GenF4.menu.pnum.GENERIC_F411VCTX.upload.maximum_size=262144
5278+
GenF4.menu.pnum.GENERIC_F411VCTX.upload.maximum_data_size=131072
5279+
GenF4.menu.pnum.GENERIC_F411VCTX.build.board=GENERIC_F411VCTX
5280+
GenF4.menu.pnum.GENERIC_F411VCTX.build.product_line=STM32F411xE
5281+
GenF4.menu.pnum.GENERIC_F411VCTX.build.variant=STM32F4xx/F411V(C-E)T
5282+
GenF4.menu.pnum.GENERIC_F411VCTX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F411.svd
5283+
5284+
# Generic F411VETx
5285+
GenF4.menu.pnum.GENERIC_F411VETX=Generic F411VETx
5286+
GenF4.menu.pnum.GENERIC_F411VETX.upload.maximum_size=524288
5287+
GenF4.menu.pnum.GENERIC_F411VETX.upload.maximum_data_size=131072
5288+
GenF4.menu.pnum.GENERIC_F411VETX.build.board=GENERIC_F411VETX
5289+
GenF4.menu.pnum.GENERIC_F411VETX.build.product_line=STM32F411xE
5290+
GenF4.menu.pnum.GENERIC_F411VETX.build.variant=STM32F4xx/F411V(C-E)T
5291+
GenF4.menu.pnum.GENERIC_F411VETX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F411.svd
5292+
52615293
# Generic F412CEUx
52625294
GenF4.menu.pnum.GENERIC_F412CEUX=Generic F412CEUx
52635295
GenF4.menu.pnum.GENERIC_F412CEUX.upload.maximum_size=524288

‎variants/STM32F4xx/F411V(C-E)T/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ add_library(variant_bin STATIC EXCLUDE_FROM_ALL
2222
generic_clock.c
2323
PeripheralPins.c
2424
variant_generic.cpp
25+
variant_DISCO_F411VE.cpp
2526
)
2627
target_link_libraries(variant_binPUBLIC variant_usage)
2728

‎variants/STM32F4xx/F411V(C-E)T/generic_clock.c‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,42 @@
2020
*/
2121
WEAKvoidSystemClock_Config(void)
2222
{
23-
/* SystemClock_Config can be generated by STM32CubeMX */
24-
#warning "SystemClock_Config() is empty. Default clock at reset is used."
23+
RCC_OscInitTypeDefRCC_OscInitStruct= {};
24+
RCC_ClkInitTypeDefRCC_ClkInitStruct= {};
25+
26+
/** Configure the main internal regulator output voltage
27+
*/
28+
__HAL_RCC_PWR_CLK_ENABLE();
29+
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
30+
31+
/** Initializes the RCC Oscillators according to the specified parameters
32+
* in the RCC_OscInitTypeDef structure.
33+
*/
34+
RCC_OscInitStruct.OscillatorType=RCC_OSCILLATORTYPE_HSI;
35+
RCC_OscInitStruct.HSIState=RCC_HSI_ON;
36+
RCC_OscInitStruct.HSICalibrationValue=RCC_HSICALIBRATION_DEFAULT;
37+
RCC_OscInitStruct.PLL.PLLState=RCC_PLL_ON;
38+
RCC_OscInitStruct.PLL.PLLSource=RCC_PLLSOURCE_HSI;
39+
RCC_OscInitStruct.PLL.PLLM=16;
40+
RCC_OscInitStruct.PLL.PLLN=192;
41+
RCC_OscInitStruct.PLL.PLLP=RCC_PLLP_DIV2;
42+
RCC_OscInitStruct.PLL.PLLQ=4;
43+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct)!=HAL_OK) {
44+
Error_Handler();
45+
}
46+
47+
/** Initializes the CPU, AHB and APB buses clocks
48+
*/
49+
RCC_ClkInitStruct.ClockType=RCC_CLOCKTYPE_HCLK |RCC_CLOCKTYPE_SYSCLK
50+
|RCC_CLOCKTYPE_PCLK1 |RCC_CLOCKTYPE_PCLK2;
51+
RCC_ClkInitStruct.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK;
52+
RCC_ClkInitStruct.AHBCLKDivider=RCC_SYSCLK_DIV1;
53+
RCC_ClkInitStruct.APB1CLKDivider=RCC_HCLK_DIV4;
54+
RCC_ClkInitStruct.APB2CLKDivider=RCC_HCLK_DIV1;
55+
56+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct,FLASH_LATENCY_3)!=HAL_OK) {
57+
Error_Handler();
58+
}
2559
}
2660

2761
#endif/* ARDUINO_GENERIC_* */
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
/*
2+
******************************************************************************
3+
**
4+
** @file : LinkerScript.ld
5+
**
6+
** @author : Auto-generated by STM32CubeIDE
7+
**
8+
** @brief : Linker script for STM32F411VETx Device from STM32F4 series
9+
** 512KBytes FLASH
10+
** 128KBytes RAM
11+
**
12+
** Set heap size, stack size and stack location according
13+
** to application requirements.
14+
**
15+
** Set memory bank area and size if external memory is used
16+
**
17+
** Target : STMicroelectronics STM32
18+
**
19+
** Distribution: The file is distributed as is, without any warranty
20+
** of any kind.
21+
**
22+
******************************************************************************
23+
** @attention
24+
**
25+
** Copyright (c) 2025 STMicroelectronics.
26+
** All rights reserved.
27+
**
28+
** This software is licensed under terms that can be found in the LICENSE file
29+
** in the root directory of this software component.
30+
** If no LICENSE file comes with this software, it is provided AS-IS.
31+
**
32+
******************************************************************************
33+
*/
34+
35+
/* Entry Point*/
36+
ENTRY(Reset_Handler)
37+
38+
/* Highest address of the user mode stack*/
39+
_estack = ORIGIN(RAM) + LENGTH(RAM);/* end of "RAM" Ram type memory*/
40+
41+
_Min_Heap_Size =0x200;/* required amount of heap*/
42+
_Min_Stack_Size =0x400;/* required amount of stack*/
43+
44+
/* Memories definition*/
45+
MEMORY
46+
{
47+
RAM (xrw) :ORIGIN =0x20000000,LENGTH = LD_MAX_DATA_SIZE
48+
FLASH (rx) :ORIGIN =0x8000000 + LD_FLASH_OFFSET,LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET
49+
}
50+
51+
/* Sections*/
52+
SECTIONS
53+
{
54+
55+
/* The startup code into "FLASH" Rom type memory*/
56+
.isr_vector :
57+
{
58+
. =ALIGN(4);
59+
KEEP(*(.isr_vector))/* Startup code*/
60+
. =ALIGN(4);
61+
} >FLASH
62+
63+
/* The program code and other data into "FLASH" Rom type memory*/
64+
.text :
65+
{
66+
. =ALIGN(4);
67+
*(.text)/* .text sections (code)*/
68+
*(.text*)/* .text* sections (code)*/
69+
*(.glue_7)/* glue arm to thumb code*/
70+
*(.glue_7t)/* glue thumb to arm code*/
71+
*(.eh_frame)
72+
73+
KEEP (*(.init))
74+
KEEP (*(.fini))
75+
76+
. =ALIGN(4);
77+
_etext = .;/* define a global symbols at end of code*/
78+
} >FLASH
79+
80+
/* Constant data into "FLASH" Rom type memory*/
81+
.rodata :
82+
{
83+
. =ALIGN(4);
84+
*(.rodata)/* .rodata sections (constants, strings, etc.)*/
85+
*(.rodata*)/* .rodata* sections (constants, strings, etc.)*/
86+
. =ALIGN(4);
87+
} >FLASH
88+
89+
.ARM.extab (READONLY) :/* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.*/
90+
{
91+
. =ALIGN(4);
92+
*(.ARM.extab* .gnu.linkonce.armextab.*)
93+
. =ALIGN(4);
94+
} >FLASH
95+
96+
.ARM (READONLY) :/* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.*/
97+
{
98+
. =ALIGN(4);
99+
__exidx_start = .;
100+
*(.ARM.exidx*)
101+
__exidx_end = .;
102+
. =ALIGN(4);
103+
} >FLASH
104+
105+
.preinit_array (READONLY) :/* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.*/
106+
{
107+
. =ALIGN(4);
108+
PROVIDE_HIDDEN (__preinit_array_start = .);
109+
KEEP (*(.preinit_array*))
110+
PROVIDE_HIDDEN (__preinit_array_end = .);
111+
. =ALIGN(4);
112+
} >FLASH
113+
114+
.init_array (READONLY) :/* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.*/
115+
{
116+
. =ALIGN(4);
117+
PROVIDE_HIDDEN (__init_array_start = .);
118+
KEEP (*(SORT(.init_array.*)))
119+
KEEP (*(.init_array*))
120+
PROVIDE_HIDDEN (__init_array_end = .);
121+
. =ALIGN(4);
122+
} >FLASH
123+
124+
.fini_array (READONLY) :/* The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier.*/
125+
{
126+
. =ALIGN(4);
127+
PROVIDE_HIDDEN (__fini_array_start = .);
128+
KEEP (*(SORT(.fini_array.*)))
129+
KEEP (*(.fini_array*))
130+
PROVIDE_HIDDEN (__fini_array_end = .);
131+
. =ALIGN(4);
132+
} >FLASH
133+
134+
/* Used by the startup to initialize data*/
135+
_sidata =LOADADDR(.data);
136+
137+
/* Initialized data sections into "RAM" Ram type memory*/
138+
.data :
139+
{
140+
. =ALIGN(4);
141+
_sdata = .;/* create a global symbol at data start*/
142+
*(.data)/* .data sections*/
143+
*(.data*)/* .data* sections*/
144+
*(.RamFunc)/* .RamFunc sections*/
145+
*(.RamFunc*)/* .RamFunc* sections*/
146+
147+
. =ALIGN(4);
148+
_edata = .;/* define a global symbol at data end*/
149+
150+
} >RAM AT> FLASH
151+
152+
/* Uninitialized data section into "RAM" Ram type memory*/
153+
. =ALIGN(4);
154+
.bss :
155+
{
156+
/* This is used by the startup in order to initialize the .bss section*/
157+
_sbss = .;/* define a global symbol at bss start*/
158+
__bss_start__ = _sbss;
159+
*(.bss)
160+
*(.bss*)
161+
*(COMMON)
162+
163+
. =ALIGN(4);
164+
_ebss = .;/* define a global symbol at bss end*/
165+
__bss_end__ = _ebss;
166+
} >RAM
167+
168+
/* User_heap_stack section, used to check that there is enough "RAM" Ram type memory left*/
169+
._user_heap_stack :
170+
{
171+
. =ALIGN(8);
172+
PROVIDE ( end = . );
173+
PROVIDE ( _end = . );
174+
. = . + _Min_Heap_Size;
175+
. = . + _Min_Stack_Size;
176+
. =ALIGN(8);
177+
} >RAM
178+
179+
/* Remove information from the compiler libraries*/
180+
/DISCARD/ :
181+
{
182+
libc.a ( * )
183+
libm.a ( * )
184+
libgcc.a ( * )
185+
}
186+
187+
.ARM.attributes 0 : { *(.ARM.attributes) }
188+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp