Skip to content

Commit 6d0d956

Browse files
committed
system(U0): update STM32U0xx CMSIS Drivers to v1.2.0
Included in STM32CubeU0 FW v1.2.0 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 39e4786 commit 6d0d956

File tree

7 files changed

+39
-12
lines changed

7 files changed

+39
-12
lines changed

system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/stm32u031xx.h

+4
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,10 @@ typedef struct
706706
#define UID_BASE (0x1FFF3E50UL) /*!< Unique device ID register base address */
707707
#define FLASHSIZE_BASE (0x1FFF3EA0UL) /*!< Flash size data register base address */
708708

709+
/*!< Bootloader Firmware */
710+
/************ Bootloader Exit Secure Memory Firmware *************/
711+
#define BL_EXIT_SEC_MEM_BASE (0x1FFF3500UL)
712+
709713
/**
710714
* @}
711715
*/

system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/stm32u073xx.h

+4
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,10 @@ typedef struct
775775
#define UID_BASE (0x1FFF6E50UL) /*!< Unique device ID register base address */
776776
#define FLASHSIZE_BASE (0x1FFF6EA0UL) /*!< Flash size data register base address */
777777

778+
/*!< Bootloader Firmware */
779+
/************ Bootloader Exit Secure Memory Firmware *************/
780+
#define BL_EXIT_SEC_MEM_BASE (0x1FFF6000UL)
781+
778782
/**
779783
* @}
780784
*/

system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/stm32u083xx.h

+4
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,10 @@ typedef struct
809809
#define UID_BASE (0x1FFF6E50UL) /*!< Unique device ID register base address */
810810
#define FLASHSIZE_BASE (0x1FFF6EA0UL) /*!< Flash size data register base address */
811811

812+
/*!< Bootloader Firmware */
813+
/************ Bootloader Exit Secure Memory Firmware *************/
814+
#define BL_EXIT_SEC_MEM_BASE (0x1FFF6000UL)
815+
812816
/**
813817
* @}
814818
*/

system/Drivers/CMSIS/Device/ST/STM32U0xx/Include/stm32u0xx.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* is using in the C source code, usually in main.c. This file contains:
99
* - Configuration section that allows to select:
1010
* - The STM32U0xx device used in the target application
11-
* - To use or not the peripherals drivers in application code(i.e.
12-
* code will be based on direct access to peripherals registers
11+
* - To use or not the peripheral's drivers in application code(i.e.
12+
* code will be based on direct access to peripheral's registers
1313
* rather than drivers API), this option is controlled by
1414
* "#define USE_HAL_DRIVER"
1515
*
@@ -76,10 +76,10 @@
7676
#endif /* USE_HAL_DRIVER */
7777

7878
/**
79-
* @brief CMSIS Device version number 1.0.0
79+
* @brief CMSIS Device version number 1.2.0
8080
*/
8181
#define __STM32U0_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
82-
#define __STM32U0_CMSIS_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */
82+
#define __STM32U0_CMSIS_VERSION_SUB1 (0x02) /*!< [23:16] sub1 version */
8383
#define __STM32U0_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
8484
#define __STM32U0_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
8585
#define __STM32U0_CMSIS_VERSION ((__STM32U0_CMSIS_VERSION_MAIN << 24)\
@@ -127,8 +127,8 @@ typedef enum
127127

128128
typedef enum
129129
{
130-
ERROR = 0,
131-
SUCCESS = !ERROR
130+
SUCCESS = 0,
131+
ERROR = !SUCCESS
132132
} ErrorStatus;
133133

134134
/**

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

+19-4
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,42 @@ <h1 id="release-notes-for-stm32u0xx-cmsis">Release Notes for <mark> STM32U0xx C
3030
<div class="col-sm-12 col-lg-8">
3131
<h1 id="update-history"><strong>Update History</strong></h1>
3232
<div class="collapse">
33-
<input type="checkbox" id="collapse-section2" checked aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.1.0 / 05-June-2024</strong></label>
33+
<input type="checkbox" id="collapse-section3" checked aria-hidden="true"> <label for="collapse-section3" aria-hidden="true"><strong>V1.2.0 / 30-October-2024</strong></label>
3434
<div>
3535
<h2 id="main-changes">Main Changes</h2>
3636
<ul>
3737
<li><strong>CMSIS Device</strong> Maintenance Release version of bits and registers definition aligned with the <strong>RM0503</strong> (STM32U0 reference manual).
3838
<ul>
39+
<li>Fixed the right CFGR_HPRE shift in the SystemCoreClockUpdate API.</li>
40+
<li>Align the ErrorStatus typedef declaration with HAL_StatusTypeDef.</li>
41+
<li>Add the address to use for the bootloader jump service.</li>
42+
</ul></li>
43+
</ul>
44+
<h1 id="section"></h1>
45+
</div>
46+
</div>
47+
<div class="collapse">
48+
<input type="checkbox" id="collapse-section2" aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V1.1.0 / 05-June-2024</strong></label>
49+
<div>
50+
<h2 id="main-changes-1">Main Changes</h2>
51+
<ul>
52+
<li><strong>CMSIS Device</strong> Maintenance Release version of bits and registers definition aligned with the <strong>RM0503</strong> (STM32U0 reference manual).
53+
<ul>
3954
<li>Add I2C_CR1_SBC bit definition.</li>
4055
<li>Removed the I2C_CR1_SWRST bit definition.</li>
4156
</ul></li>
4257
</ul>
43-
<h1 id="section"></h1>
58+
<h1 id="section-1"></h1>
4459
</div>
4560
</div>
4661
<div class="collapse">
4762
<input type="checkbox" id="collapse-section1" ria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.0.0 / 12-February-2024</strong></label>
4863
<div>
49-
<h2 id="main-changes-1">Main Changes</h2>
64+
<h2 id="main-changes-2">Main Changes</h2>
5065
<ul>
5166
<li>First official release version of bits and registers definition aligned with the <strong>RM0503</strong> (STM32U0 reference manual).</li>
5267
</ul>
53-
<h1 id="section-1"></h1>
68+
<h1 id="section-2"></h1>
5469
</div>
5570
</div>
5671
</div>

system/Drivers/CMSIS/Device/ST/STM32U0xx/Source/Templates/system_stm32u0xx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void SystemCoreClockUpdate(void)
327327
}
328328
/* Compute HCLK clock frequency --------------------------------------------*/
329329
/* Get HCLK prescaler */
330-
tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4U) & 0xFU];
330+
tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos) & 0xFU];
331331
/* HCLK clock frequency */
332332
SystemCoreClock >>= tmp;
333333
}

system/Drivers/CMSIS/Device/ST/STM32YYxx_CMSIS_version.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32L4: 1.7.4
1717
* STM32L5: 1.0.6
1818
* STM32MP1: 1.6.0
19-
* STM32U0: 1.0.0
19+
* STM32U0: 1.2.0
2020
* STM32U5: 1.4.0
2121
* STM32WB: 1.12.2
2222
* STM32WBA: 1.4.0

0 commit comments

Comments
 (0)