Skip to content

Commit 28f4039

Browse files
committed
[WB] Update STM32WBxx CMSIS to v1.2.0
Included in STM32CubeWB FW V1.2.0 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent f0ed3e3 commit 28f4039

File tree

9 files changed

+11839
-87
lines changed

9 files changed

+11839
-87
lines changed

system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wb50xx.h

Lines changed: 11206 additions & 0 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wb55xx.h

Lines changed: 42 additions & 81 deletions
Large diffs are not rendered by default.

system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/stm32wbxx.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* @brief CMSIS Device version number
7070
*/
7171
#define __STM32WBxx_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
72-
#define __STM32WBxx_CMSIS_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
72+
#define __STM32WBxx_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
7373
#define __STM32WBxx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
7474
#define __STM32WBxx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
7575
#define __STM32WBxx_CMSIS_DEVICE_VERSION ((__STM32WBxx_CMSIS_VERSION_MAIN << 24)\
@@ -87,10 +87,11 @@
8787

8888
#if defined(STM32WB55xx)
8989
#include "stm32wb55xx.h"
90+
#elif defined(STM32WB50xx)
91+
#include "stm32wb50xx.h"
9092
#else
9193
#error "Please select first the target STM32WBxx device used in your application, for instance xxx (in stm32wbxx.h file)"
9294
#endif
93-
9495
/**
9596
* @}
9697
*/

system/Drivers/CMSIS/Device/ST/STM32WBxx/Include/system_stm32wbxx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ extern const uint32_t AHBPrescTable[16]; /*!< AHB prescalers table values */
6464
extern const uint32_t APBPrescTable[8]; /*!< APB prescalers table values */
6565
extern const uint32_t MSIRangeTable[16]; /*!< MSI ranges table values */
6666

67+
#if defined(STM32WB55xx)
6768
extern const uint32_t SmpsPrescalerTable[4][6]; /*!< SMPS factor ranges table values */
69+
#endif
6870
/**
6971
* @}
7072
*/

system/Drivers/CMSIS/Device/ST/STM32WBxx/Release_Notes.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ <h1 id="purpose">Purpose</h1>
3636
<p>This driver provides the CMSIS device for the stm32wbxx products. This covers</p>
3737
<ul>
3838
<li>STM32WB55xx devices</li>
39+
<li>STM32WB50xx devices</li>
3940
</ul>
4041
<p>This driver is composed of the descriptions of the registers under “Include” directory.</p>
4142
<p>Various template file are provided to easily build an application. They can be adapted to fit applications requirements.</p>
@@ -48,9 +49,29 @@ <h1 id="purpose">Purpose</h1>
4849
<div class="col-sm-12 col-lg-8">
4950
<h1 id="update-history">Update History</h1>
5051
<div class="collapse">
51-
<input type="checkbox" id="collapse-section2" checked aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 05-April-2019</label>
52+
<input type="checkbox" id="collapse-section3" checked aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 26-June-2019</label>
5253
<div>
5354
<h2 id="main-changes">Main Changes</h2>
55+
<h3 id="introduction-of-stm32wb50xx-device">Introduction of STM32WB50xx device</h3>
56+
<p>First release for STM32WBxx CMSIS introducing <strong>stm32wb50xx</strong> devices.</p>
57+
<h2 id="contents">Contents</h2>
58+
<p>CMSIS devices files for stm32wb55xx, stm32wb50xx devices.</p>
59+
<h2 id="development-toolchains-and-compilers">Development Toolchains and Compilers</h2>
60+
<ul>
61+
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.20.2</li>
62+
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.25</li>
63+
<li>System Workbench STM32 (SW4STM32) toolchain V2.7</li>
64+
</ul>
65+
<h2 id="supported-devices-and-boards">Supported Devices and boards</h2>
66+
<ul>
67+
<li>STM32WB55xx and STM32WB50xx devices</li>
68+
</ul>
69+
</div>
70+
</div>
71+
<div class="collapse">
72+
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 05-April-2019</label>
73+
<div>
74+
<h2 id="main-changes-1">Main Changes</h2>
5475
<h3 id="maintenance-release">Maintenance release</h3>
5576
<p>Maintenance release for <strong>STM32WBxx</strong> devices (stm32wb55xx devices)</p>
5677
<table>
@@ -74,7 +95,7 @@ <h3 id="maintenance-release">Maintenance release</h3>
7495
<div class="collapse">
7596
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 06-February-2019</label>
7697
<div>
77-
<h2 id="main-changes-1">Main Changes</h2>
98+
<h2 id="main-changes-2">Main Changes</h2>
7899
<h3 id="first-release">First release</h3>
79100
<p>Add support of STM32WB55xx.</p>
80101
</div>
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
/**
2+
*****************************************************************************
3+
**
4+
** File : stm32wb50xx_flash_cm4.ld
5+
**
6+
** Abstract : System Workbench Minimal System calls file
7+
**
8+
** For more information about which c-functions
9+
** need which of these lowlevel functions
10+
** please consult the Newlib libc-manual
11+
**
12+
** Environment : System Workbench for MCU
13+
**
14+
** Distribution: The file is distributed “as is,” without any warranty
15+
** of any kind.
16+
**
17+
*****************************************************************************
18+
**
19+
** <h2><center>&copy; COPYRIGHT(c) 2019 Ac6</center></h2>
20+
**
21+
** Redistribution and use in source and binary forms, with or without modification,
22+
** are permitted provided that the following conditions are met:
23+
** 1. Redistributions of source code must retain the above copyright notice,
24+
** this list of conditions and the following disclaimer.
25+
** 2. Redistributions in binary form must reproduce the above copyright notice,
26+
** this list of conditions and the following disclaimer in the documentation
27+
** and/or other materials provided with the distribution.
28+
** 3. Neither the name of Ac6 nor the names of its contributors
29+
** may be used to endorse or promote products derived from this software
30+
** without specific prior written permission.
31+
**
32+
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33+
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34+
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35+
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
36+
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37+
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38+
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39+
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
40+
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41+
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42+
**
43+
*****************************************************************************
44+
*/
45+
46+
/* Entry Point */
47+
ENTRY(Reset_Handler)
48+
49+
/* Highest address of the user mode stack */
50+
_estack = 0x20010000; /* end of RAM */
51+
/* Generate a link error if heap and stack don't fit into RAM */
52+
_Min_Heap_Size = 0x400; /* required amount of heap */
53+
_Min_Stack_Size = 0x1000; /* required amount of stack */
54+
55+
/* Specify the memory areas */
56+
MEMORY
57+
{
58+
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
59+
RAM1 (xrw) : ORIGIN = 0x20000004, LENGTH = 0xFFFC
60+
RAM_SHARED (xrw) : ORIGIN = 0x20030000, LENGTH = 10K
61+
}
62+
63+
/* Define output sections */
64+
SECTIONS
65+
{
66+
/* The startup code goes first into FLASH */
67+
.isr_vector :
68+
{
69+
. = ALIGN(4);
70+
KEEP(*(.isr_vector)) /* Startup code */
71+
. = ALIGN(4);
72+
} >FLASH
73+
74+
/* The program code and other data goes into FLASH */
75+
.text :
76+
{
77+
. = ALIGN(4);
78+
*(.text) /* .text sections (code) */
79+
*(.text*) /* .text* sections (code) */
80+
*(.glue_7) /* glue arm to thumb code */
81+
*(.glue_7t) /* glue thumb to arm code */
82+
*(.eh_frame)
83+
84+
KEEP (*(.init))
85+
KEEP (*(.fini))
86+
87+
. = ALIGN(4);
88+
_etext = .; /* define a global symbols at end of code */
89+
} >FLASH
90+
91+
/* Constant data goes into FLASH */
92+
.rodata :
93+
{
94+
. = ALIGN(4);
95+
*(.rodata) /* .rodata sections (constants, strings, etc.) */
96+
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
97+
. = ALIGN(4);
98+
} >FLASH
99+
100+
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
101+
.ARM : {
102+
__exidx_start = .;
103+
*(.ARM.exidx*)
104+
__exidx_end = .;
105+
} >FLASH
106+
107+
.preinit_array :
108+
{
109+
PROVIDE_HIDDEN (__preinit_array_start = .);
110+
KEEP (*(.preinit_array*))
111+
PROVIDE_HIDDEN (__preinit_array_end = .);
112+
} >FLASH
113+
.init_array :
114+
{
115+
PROVIDE_HIDDEN (__init_array_start = .);
116+
KEEP (*(SORT(.init_array.*)))
117+
KEEP (*(.init_array*))
118+
PROVIDE_HIDDEN (__init_array_end = .);
119+
} >FLASH
120+
.fini_array :
121+
{
122+
PROVIDE_HIDDEN (__fini_array_start = .);
123+
KEEP (*(SORT(.fini_array.*)))
124+
KEEP (*(.fini_array*))
125+
PROVIDE_HIDDEN (__fini_array_end = .);
126+
} >FLASH
127+
128+
/* used by the startup to initialize data */
129+
_sidata = LOADADDR(.data);
130+
131+
/* Initialized data sections goes into RAM, load LMA copy after code */
132+
.data :
133+
{
134+
. = ALIGN(4);
135+
_sdata = .; /* create a global symbol at data start */
136+
*(.data) /* .data sections */
137+
*(.data*) /* .data* sections */
138+
139+
. = ALIGN(4);
140+
_edata = .; /* define a global symbol at data end */
141+
} >RAM1 AT> FLASH
142+
143+
144+
/* Uninitialized data section */
145+
. = ALIGN(4);
146+
.bss :
147+
{
148+
/* This is used by the startup in order to initialize the .bss secion */
149+
_sbss = .; /* define a global symbol at bss start */
150+
__bss_start__ = _sbss;
151+
*(.bss)
152+
*(.bss*)
153+
*(COMMON)
154+
155+
. = ALIGN(4);
156+
_ebss = .; /* define a global symbol at bss end */
157+
__bss_end__ = _ebss;
158+
} >RAM1
159+
160+
/* User_heap_stack section, used to check that there is enough RAM left */
161+
._user_heap_stack :
162+
{
163+
. = ALIGN(8);
164+
PROVIDE ( end = . );
165+
PROVIDE ( _end = . );
166+
. = . + _Min_Heap_Size;
167+
. = . + _Min_Stack_Size;
168+
. = ALIGN(8);
169+
} >RAM1
170+
171+
172+
173+
/* Remove information from the standard libraries */
174+
/DISCARD/ :
175+
{
176+
libc.a ( * )
177+
libm.a ( * )
178+
libgcc.a ( * )
179+
}
180+
181+
.ARM.attributes 0 : { *(.ARM.attributes) }
182+
MAPPING_TABLE (NOLOAD) : { *(MAPPING_TABLE) } >RAM_SHARED
183+
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED
184+
MB_MEM2 : { *(MB_MEM2) } >RAM_SHARED
185+
}
186+
187+

0 commit comments

Comments
 (0)