Skip to content

Commit 24bec9a

Browse files
ABOSTMfpistm
authored andcommitted
Add support of B-L4S5I-IOT01A variant
1 parent 5147110 commit 24bec9a

File tree

7 files changed

+1044
-0
lines changed

7 files changed

+1044
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
127127
| :green_heart: | STM32L072CZ | [B-L072Z-LRWAN1](http://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html) | *1.1.0* | |
128128
| :green_heart: | STM32L475VG | [B-L475E-IOT01A](http://www.st.com/en/evaluation-tools/b-l475e-iot01a.html) | *1.0.1* | |
129129
| :green_heart: | STM32F413ZH | [32F413HDISCOVERY](https://www.st.com/en/evaluation-tools/32f413hdiscovery.html) | *1.9.0* | |
130+
| :yellow_heart: | STM32L4S5VI | [B-L4S5I-IOT01A](https://www.st.com/en/evaluation-tools/b-l4s5i-iot01a.html) | **2.0.0** | |
130131

131132
### [Eval](https://www.st.com/en/evaluation-tools/stm32-eval-boards.html) boards
132133

Diff for: boards.txt

+13
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,19 @@ Disco.menu.pnum.DISCO_L475VG_IOT.build.product_line=STM32L475xx
683683
Disco.menu.pnum.DISCO_L475VG_IOT.build.variant=DISCO_L475VG_IOT
684684
Disco.menu.pnum.DISCO_L475VG_IOT.build.cmsis_lib_gcc=arm_cortexM4lf_math
685685

686+
# B_L4S5I_IOT01A board
687+
Disco.menu.pnum.B_L4S5I_IOT01A=B-L4S5I-IOT01A
688+
Disco.menu.pnum.B_L4S5I_IOT01A.node=DIS_L4IOT
689+
Disco.menu.pnum.B_L4S5I_IOT01A.upload.maximum_size=2097152
690+
Disco.menu.pnum.B_L4S5I_IOT01A.upload.maximum_data_size=655360
691+
Disco.menu.pnum.B_L4S5I_IOT01A.build.mcu=cortex-m4
692+
Disco.menu.pnum.B_L4S5I_IOT01A.build.flags.fp=-mfpu=fpv4-sp-d16 -mfloat-abi=hard
693+
Disco.menu.pnum.B_L4S5I_IOT01A.build.board=B_L4S5I_IOT01A
694+
Disco.menu.pnum.B_L4S5I_IOT01A.build.series=STM32L4xx
695+
Disco.menu.pnum.B_L4S5I_IOT01A.build.product_line=STM32L4S5xx
696+
Disco.menu.pnum.B_L4S5I_IOT01A.build.variant=B_L4S5I_IOT01A
697+
Disco.menu.pnum.B_L4S5I_IOT01A.build.cmsis_lib_gcc=arm_cortexM4lf_math
698+
686699
# DISCO-L072CZ-LRWAN1 board
687700
Disco.menu.pnum.DISCO_L072CZ_LRWAN1=Discovery L072CZ-LRWAN1
688701
Disco.menu.pnum.DISCO_L072CZ_LRWAN1.node="DIS_L072Z,NODE_L072CZ"

Diff for: variants/B_L4S5I_IOT01A/PeripheralPins.c

+417
Large diffs are not rendered by default.

Diff for: variants/B_L4S5I_IOT01A/PinNamesVar.h

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* SYS_WKUP */
2+
#ifdef PWR_WAKEUP_PIN1
3+
SYS_WKUP1 = PA_0,
4+
#endif
5+
#ifdef PWR_WAKEUP_PIN2
6+
SYS_WKUP2 = PC_13,
7+
#endif
8+
#ifdef PWR_WAKEUP_PIN3
9+
SYS_WKUP3 = PE_6,
10+
#endif
11+
#ifdef PWR_WAKEUP_PIN4
12+
SYS_WKUP4 = PA_2,
13+
#endif
14+
#ifdef PWR_WAKEUP_PIN5
15+
SYS_WKUP5 = PC_5,
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
26+
/* USB */
27+
#ifdef USBCON
28+
USB_OTG_FS_SOF = PA_8,
29+
USB_OTG_FS_VBUS = PA_9,
30+
USB_OTG_FS_ID = PA_10,
31+
USB_OTG_FS_DM = PA_11,
32+
USB_OTG_FS_DP = PA_12,
33+
/* USB_OTG_FS_NOE = PA_13, */
34+
/* USB_OTG_FS_SOF = PA_14, */
35+
/* USB_OTG_FS_NOE = PC_9, */
36+
#endif

Diff for: variants/B_L4S5I_IOT01A/ldscript.ld

+200
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
/*
2+
*****************************************************************************
3+
**
4+
5+
** File : LinkerScript.ld
6+
**
7+
** Abstract : Linker script for STM32L4S5VITx Device with
8+
** 2048KByte FLASH, 640KByte 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+
*****************************************************************************
22+
** @attention
23+
**
24+
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
25+
**
26+
** Redistribution and use in source and binary forms, with or without modification,
27+
** are permitted provided that the following conditions are met:
28+
** 1. Redistributions of source code must retain the above copyright notice,
29+
** this list of conditions and the following disclaimer.
30+
** 2. Redistributions in binary form must reproduce the above copyright notice,
31+
** this list of conditions and the following disclaimer in the documentation
32+
** and/or other materials provided with the distribution.
33+
** 3. Neither the name of Ac6 nor the names of its contributors
34+
** may be used to endorse or promote products derived from this software
35+
** without specific prior written permission.
36+
**
37+
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38+
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41+
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42+
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43+
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44+
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45+
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46+
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47+
**
48+
*****************************************************************************
49+
*/
50+
51+
/* Entry Point */
52+
ENTRY(Reset_Handler)
53+
54+
/* Highest address of the user mode stack */
55+
_estack = 0x200A0000; /* end of RAM */
56+
/* Generate a link error if heap and stack don't fit into RAM */
57+
_Min_Heap_Size = 0x200; /* required amount of heap */
58+
_Min_Stack_Size = 0x400; /* required amount of stack */
59+
60+
/* Specify the memory areas */
61+
MEMORY
62+
{
63+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 640K
64+
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
65+
}
66+
67+
/* Define output sections */
68+
SECTIONS
69+
{
70+
/* The startup code goes first into FLASH */
71+
.isr_vector :
72+
{
73+
. = ALIGN(8);
74+
KEEP(*(.isr_vector)) /* Startup code */
75+
. = ALIGN(8);
76+
} >FLASH
77+
78+
/* The program code and other data goes into FLASH */
79+
.text :
80+
{
81+
. = ALIGN(8);
82+
*(.text) /* .text sections (code) */
83+
*(.text*) /* .text* sections (code) */
84+
*(.glue_7) /* glue arm to thumb code */
85+
*(.glue_7t) /* glue thumb to arm code */
86+
*(.eh_frame)
87+
88+
KEEP (*(.init))
89+
KEEP (*(.fini))
90+
91+
. = ALIGN(8);
92+
_etext = .; /* define a global symbols at end of code */
93+
} >FLASH
94+
95+
/* Constant data goes into FLASH */
96+
.rodata :
97+
{
98+
. = ALIGN(8);
99+
*(.rodata) /* .rodata sections (constants, strings, etc.) */
100+
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
101+
. = ALIGN(8);
102+
} >FLASH
103+
104+
.ARM.extab :
105+
{
106+
. = ALIGN(8);
107+
*(.ARM.extab* .gnu.linkonce.armextab.*)
108+
. = ALIGN(8);
109+
} >FLASH
110+
.ARM : {
111+
. = ALIGN(8);
112+
__exidx_start = .;
113+
*(.ARM.exidx*)
114+
__exidx_end = .;
115+
. = ALIGN(8);
116+
} >FLASH
117+
118+
.preinit_array :
119+
{
120+
. = ALIGN(8);
121+
PROVIDE_HIDDEN (__preinit_array_start = .);
122+
KEEP (*(.preinit_array*))
123+
PROVIDE_HIDDEN (__preinit_array_end = .);
124+
. = ALIGN(8);
125+
} >FLASH
126+
127+
.init_array :
128+
{
129+
. = ALIGN(8);
130+
PROVIDE_HIDDEN (__init_array_start = .);
131+
KEEP (*(SORT(.init_array.*)))
132+
KEEP (*(.init_array*))
133+
PROVIDE_HIDDEN (__init_array_end = .);
134+
. = ALIGN(8);
135+
} >FLASH
136+
.fini_array :
137+
{
138+
. = ALIGN(8);
139+
PROVIDE_HIDDEN (__fini_array_start = .);
140+
KEEP (*(SORT(.fini_array.*)))
141+
KEEP (*(.fini_array*))
142+
PROVIDE_HIDDEN (__fini_array_end = .);
143+
. = ALIGN(8);
144+
} >FLASH
145+
146+
/* used by the startup to initialize data */
147+
_sidata = LOADADDR(.data);
148+
149+
/* Initialized data sections goes into RAM, load LMA copy after code */
150+
.data :
151+
{
152+
. = ALIGN(8);
153+
_sdata = .; /* create a global symbol at data start */
154+
*(.data) /* .data sections */
155+
*(.data*) /* .data* sections */
156+
157+
. = ALIGN(8);
158+
_edata = .; /* define a global symbol at data end */
159+
} >RAM AT> FLASH
160+
161+
162+
/* Uninitialized data section */
163+
. = ALIGN(4);
164+
.bss :
165+
{
166+
/* This is used by the startup in order to initialize the .bss secion */
167+
_sbss = .; /* define a global symbol at bss start */
168+
__bss_start__ = _sbss;
169+
*(.bss)
170+
*(.bss*)
171+
*(COMMON)
172+
173+
. = ALIGN(4);
174+
_ebss = .; /* define a global symbol at bss end */
175+
__bss_end__ = _ebss;
176+
} >RAM
177+
178+
/* User_heap_stack section, used to check that there is enough RAM left */
179+
._user_heap_stack :
180+
{
181+
. = ALIGN(8);
182+
PROVIDE ( end = . );
183+
PROVIDE ( _end = . );
184+
. = . + _Min_Heap_Size;
185+
. = . + _Min_Stack_Size;
186+
. = ALIGN(8);
187+
} >RAM
188+
189+
190+
191+
/* Remove information from the standard libraries */
192+
/DISCARD/ :
193+
{
194+
libc.a ( * )
195+
libm.a ( * )
196+
libgcc.a ( * )
197+
}
198+
199+
.ARM.attributes 0 : { *(.ARM.attributes) }
200+
}

0 commit comments

Comments
 (0)