Skip to content

Commit 394704d

Browse files
authored
Merge pull request #1057 from fpistm/CubeUpdateWB
Update to latest STM32CubeWB
2 parents 3bcc4f1 + 88dd0a4 commit 394704d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+45142
-1232
lines changed

cores/arduino/stm32/stm32_def_build.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,16 @@
364364
#define CMSIS_STARTUP_FILE "startup_stm32l4s9xx.s"
365365
#elif defined(STM32MP1xx)
366366
#define CMSIS_STARTUP_FILE "startup_stm32mp15xx.s"
367+
#elif defined(STM32WB30xx)
368+
#define CMSIS_STARTUP_FILE "startup_stm32wb30xx_cm4.s"
369+
#elif defined(STM32WB35xx)
370+
#define CMSIS_STARTUP_FILE "startup_stm32wb35xx_cm4.s"
367371
#elif defined(STM32WB50xx)
368372
#define CMSIS_STARTUP_FILE "startup_stm32wb50xx_cm4.s"
369373
#elif defined(STM32WB55xx)
370374
#define CMSIS_STARTUP_FILE "startup_stm32wb55xx_cm4.s"
375+
#elif defined(STM32WB5Mxx)
376+
#define CMSIS_STARTUP_FILE "startup_stm32wb5mxx_cm4.s"
371377
#else
372378
#error UNKNOWN CHIP
373379
#endif

libraries/SrcWrapper/src/HAL/stm32yyxx_hal_i2s.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
#ifdef STM32L1xx
3232
#include "stm32l1xx_hal_i2s.c"
3333
#endif
34+
#ifdef STM32WBxx
35+
#include "stm32wbxx_hal_i2s.c"
36+
#endif

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

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

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

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

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

Lines changed: 65 additions & 144 deletions
Large diffs are not rendered by default.

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

Lines changed: 67 additions & 68 deletions
Large diffs are not rendered by default.

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

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

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

Lines changed: 7 additions & 1 deletion
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 (0x03U) /*!< [23:16] sub1 version */
72+
#define __STM32WBxx_CMSIS_VERSION_SUB1 (0x04U) /*!< [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,8 +87,14 @@
8787

8888
#if defined(STM32WB55xx)
8989
#include "stm32wb55xx.h"
90+
#elif defined(STM32WB5Mxx)
91+
#include "stm32wb5mxx.h"
9092
#elif defined(STM32WB50xx)
9193
#include "stm32wb50xx.h"
94+
#elif defined(STM32WB35xx)
95+
#include "stm32wb35xx.h"
96+
#elif defined(STM32WB30xx)
97+
#include "stm32wb30xx.h"
9298
#else
9399
#error "Please select first the target STM32WBxx device used in your application, for instance xxx (in stm32wbxx.h file)"
94100
#endif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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)
67+
#if defined(STM32WB55xx) || defined(STM32WB5Mxx) || defined(STM32WB35xx)
6868
extern const uint32_t SmpsPrescalerTable[4][6]; /*!< SMPS factor ranges table values */
6969
#endif
7070
/**

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

Lines changed: 66 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ <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>STM32WB5Mxx devices</li>
3940
<li>STM32WB50xx devices</li>
41+
<li>STM32WB35xx devices</li>
42+
<li>STM32WB30xx devices</li>
4043
</ul>
4144
<p>This driver is composed of the descriptions of the registers under “Include” directory.</p>
4245
<p>Various template file are provided to easily build an application. They can be adapted to fit applications requirements.</p>
@@ -45,13 +48,68 @@ <h1 id="purpose">Purpose</h1>
4548
<li>Startup files are provided as example for IAR©, KEIL© and SW4STM32©.</li>
4649
<li>Linker files are provided as example for IAR©, KEIL© and SW4STM32©.</li>
4750
</ul>
51+
<h1 id="specific-consideration-for-available-flash-size-inside-linker-file">Specific consideration for available FLASH size inside linker file</h1>
52+
<p>The available flash size depends on the wireless binary used inside the STM32WB device.</p>
53+
<p>The linker files templates for IAR, KEIL and GCC provide example of implementation which can be tuned.</p>
54+
<p>You can refer to the below chapters to optimize the usage of the flash on your device.</p>
55+
<h2 id="stm32wb55xx-stm32wb50xx-and-stm32wb5m">STM32WB55xx, STM32WB50xx and STM32WB5M</h2>
56+
<p>The default linker file provided in “/Drivers/CMSIS/DeviceST/STM32WBxx/Source/Templates” allows the application to use 512KB of flash.</p>
57+
<p>The maximum flash memory that can be used by the application is up to the Secure Flash Start Address (SFSA) that can be read from the option byte.</p>
58+
<p>The __ICFEDIT_region_ROM_end__ in the linker can be modified with a value up to : (0x08000000 + (SFSA &lt;&lt; 12)) - 1.</p>
59+
<p>Example:</p>
60+
<ul>
61+
<li>When the SFSA option byte is set to 0xA0, the maximum value to be used for __ICFEDIT_region_ROM_end is 0x0809FFFF which is 640KB of flash.</li>
62+
</ul>
63+
<p>Note:</p>
64+
<ul>
65+
<li>The SFSA option byte can only be set by the CPU2. The user cannot modify that value.</li>
66+
</ul>
67+
<h2 id="stm32wb35xx-and-stm32wb30xx">STM32WB35xx and STM32WB30xx</h2>
68+
<p>The default linker file provided in "/Drivers/CMSIS/Device/ST/STM32WBxx/Source/Templates allows the application to use 120KB of flash.</p>
69+
<p>The maximum flash memory that can be used by the application is up to the Secure Flash Start Address (SFSA) that can be read from the option byte.</p>
70+
<p>The __ICFEDIT_region_ROM_end__ in the linker can be modified with a value up to : (0x08000000 + (SFSA &lt;&lt; 12)) - 1.</p>
71+
<p>Example:</p>
72+
<ul>
73+
<li>When the SFSA option byte is set to 0x32, the maximum value to be used for __ICFEDIT_region_ROM_end is 0x08031FFF – which is 200KB of flash</li>
74+
</ul>
75+
<p>Note:</p>
76+
<ul>
77+
<li>The SFSA option byte can only be set by the CPU2. The user cannot modify that value.</li>
78+
</ul>
4879
</div>
4980
<div class="col-sm-12 col-lg-8">
5081
<h1 id="update-history">Update History</h1>
5182
<div class="collapse">
52-
<input type="checkbox" id="collapse-section4" checked aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">v1.3.0 / 11-September-2019</label>
83+
<input type="checkbox" id="collapse-section5" checked aria-hidden="true"> <label for="collapse-section5" aria-hidden="true">v1.4.0 / 12-February-2020</label>
5384
<div>
5485
<h2 id="main-changes">Main Changes</h2>
86+
<h3 id="introduction-of-stm32wb35xx-stm32wb30xx-and-stm32wb5mxx-product">Introduction of STM32WB35xx, STM32WB30xx and STM32WB5Mxx product</h3>
87+
<p>This release introduce the support of STM32WB5Mxx, STM32WB35xx product and its value line STM32WB30xx.</p>
88+
<p>Added features:</p>
89+
<ul>
90+
<li>Templates/system_stm32wbxx.c contains the initialization code referred as SystemInit.</li>
91+
<li>Startup files are provided as example for IAR©, KEIL© and SW4STM32©.</li>
92+
<li>Linker files are provided as example for IAR©, KEIL© and SW4STM32©.</li>
93+
<li>The product STM32WB5Mxx is supported by enabling inside your project the define “STM32WB5Mxx”.</li>
94+
<li>The product STM32WB35xx is supported by enabling inside your project the define “STM32WB35xx”.</li>
95+
<li>The product STM32WB30xx is supported by enabling inside your project the define “STM32WB30xx”.</li>
96+
</ul>
97+
<h2 id="development-toolchains-and-compilers">Development Toolchains and Compilers</h2>
98+
<ul>
99+
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.20.2</li>
100+
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.25</li>
101+
<li>System Workbench STM32 (SW4STM32) toolchain V2.7</li>
102+
</ul>
103+
<h2 id="supported-devices-and-boards">Supported Devices and boards</h2>
104+
<ul>
105+
<li>STM32WB55xx, STM32WB5Mxx, STM32WB50xx, STM32WB35xx and STM32WB30xx devices.</li>
106+
</ul>
107+
</div>
108+
</div>
109+
<div class="collapse">
110+
<input type="checkbox" id="collapse-section4" aria-hidden="true"> <label for="collapse-section4" aria-hidden="true">v1.3.0 / 11-September-2019</label>
111+
<div>
112+
<h2 id="main-changes-1">Main Changes</h2>
55113
<p>Maintenance release for <strong>STM32WBxx</strong> devices (stm32wb55xx and stm32wb50xx devices)</p>
56114
<table>
57115
<thead>
@@ -74,13 +132,13 @@ <h2 id="main-changes">Main Changes</h2>
74132
</tr>
75133
</tbody>
76134
</table>
77-
<h2 id="development-toolchains-and-compilers">Development Toolchains and Compilers</h2>
135+
<h2 id="development-toolchains-and-compilers-1">Development Toolchains and Compilers</h2>
78136
<ul>
79137
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.20.2</li>
80138
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.25</li>
81139
<li>System Workbench STM32 (SW4STM32) toolchain V2.7</li>
82140
</ul>
83-
<h2 id="supported-devices-and-boards">Supported Devices and boards</h2>
141+
<h2 id="supported-devices-and-boards-1">Supported Devices and boards</h2>
84142
<ul>
85143
<li>STM32WB55xx, STM32WB50xx devices</li>
86144
</ul>
@@ -89,18 +147,18 @@ <h2 id="supported-devices-and-boards">Supported Devices and boards</h2>
89147
<div class="collapse">
90148
<input type="checkbox" id="collapse-section3" aria-hidden="true"> <label for="collapse-section3" aria-hidden="true">V1.2.0 / 26-June-2019</label>
91149
<div>
92-
<h2 id="main-changes-1">Main Changes</h2>
150+
<h2 id="main-changes-2">Main Changes</h2>
93151
<h3 id="introduction-of-stm32wb50xx-device">Introduction of STM32WB50xx device</h3>
94152
<p>First release for STM32WBxx CMSIS introducing <strong>stm32wb50xx</strong> devices.</p>
95153
<h2 id="contents">Contents</h2>
96154
<p>CMSIS devices files for stm32wb55xx, stm32wb50xx devices.</p>
97-
<h2 id="development-toolchains-and-compilers-1">Development Toolchains and Compilers</h2>
155+
<h2 id="development-toolchains-and-compilers-2">Development Toolchains and Compilers</h2>
98156
<ul>
99157
<li>IAR Embedded Workbench for ARM (EWARM) toolchain V8.20.2</li>
100158
<li>RealView Microcontroller Development Kit (MDK-ARM) toolchain V5.25</li>
101159
<li>System Workbench STM32 (SW4STM32) toolchain V2.7</li>
102160
</ul>
103-
<h2 id="supported-devices-and-boards-1">Supported Devices and boards</h2>
161+
<h2 id="supported-devices-and-boards-2">Supported Devices and boards</h2>
104162
<ul>
105163
<li>STM32WB55xx and STM32WB50xx devices</li>
106164
</ul>
@@ -109,7 +167,7 @@ <h2 id="supported-devices-and-boards-1">Supported Devices and boards</h2>
109167
<div class="collapse">
110168
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true">V1.1.0 / 05-April-2019</label>
111169
<div>
112-
<h2 id="main-changes-2">Main Changes</h2>
170+
<h2 id="main-changes-3">Main Changes</h2>
113171
<h3 id="maintenance-release">Maintenance release</h3>
114172
<p>Maintenance release for <strong>STM32WBxx</strong> devices (stm32wb55xx devices)</p>
115173
<table>
@@ -133,7 +191,7 @@ <h3 id="maintenance-release">Maintenance release</h3>
133191
<div class="collapse">
134192
<input type="checkbox" id="collapse-section1" aria-hidden="true"> <label for="collapse-section1" aria-hidden="true">V1.0.0 / 06-February-2019</label>
135193
<div>
136-
<h2 id="main-changes-3">Main Changes</h2>
194+
<h2 id="main-changes-4">Main Changes</h2>
137195
<h3 id="first-release">First release</h3>
138196
<p>Add support of STM32WB55xx.</p>
139197
</div>

0 commit comments

Comments
 (0)