Skip to content

Commit b5692fd

Browse files
authored
Merge pull request ARMmbed#15420 from jeromecoutant/PR_U5_120
STM32U5: STM32Cube_FW_U5_V1.2.0
2 parents 8779918 + 9f0ede4 commit b5692fd

File tree

248 files changed

+203421
-13216
lines changed

Some content is hidden

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

248 files changed

+203421
-13216
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This software component is provided to you as part of a software package and
2+
applicable license terms are in the Package_license file. If you received this
3+
software component outside of a package or without applicable license terms,
4+
the terms of the Apache-2.0 license shall apply.
5+
You may obtain a copy of the Apache-2.0 at:
6+
https://opensource.org/licenses/Apache-2.0
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/**
2+
******************************************************************************
3+
* @file partition_stm32u5xx.h
4+
* @author MCD Application Team
5+
* @brief CMSIS STM32U5xx Device Header File for Initial Setup for
6+
* Secure / Non-Secure Zones based on CMSIS CORE V5.4.0
7+
*
8+
* The file is included in system_stm32u5xx_s.c in secure application.
9+
* It includes the configuration section that allows to select the
10+
* STM32U5xx device partitioning file for system core secure attributes
11+
* and interrupt secure and non-secure assignment.
12+
*
13+
******************************************************************************
14+
* @attention
15+
*
16+
* Copyright (c) 2021 STMicroelectronics.
17+
* All rights reserved.
18+
*
19+
* This software is licensed under terms that can be found in the LICENSE file
20+
* in the root directory of this software component.
21+
* If no LICENSE file comes with this software, it is provided AS-IS.
22+
*
23+
******************************************************************************
24+
*/
25+
26+
/** @addtogroup CMSIS
27+
* @{
28+
*/
29+
30+
/** @addtogroup stm32u5xx
31+
* @{
32+
*/
33+
34+
#ifndef PARTITION_STM32U5XX_H
35+
#define PARTITION_STM32U5XX_H
36+
37+
#ifdef __cplusplus
38+
extern "C" {
39+
#endif /* __cplusplus */
40+
41+
/** @addtogroup Secure_configuration_section
42+
* @{
43+
*/
44+
45+
#if defined(STM32U575xx)
46+
#include "partition_stm32u575xx.h"
47+
#elif defined(STM32U585xx)
48+
#include "partition_stm32u585xx.h"
49+
#elif defined(STM32U595xx)
50+
#include "partition_stm32u595xx.h"
51+
#elif defined(STM32U5A5xx)
52+
#include "partition_stm32u5a5xx.h"
53+
#elif defined(STM32U599xx)
54+
#include "partition_stm32u599xx.h"
55+
#elif defined(STM32U5A9xx)
56+
#include "partition_stm32u5a9xx.h"
57+
#elif defined(STM32U535xx)
58+
#include "partition_stm32u535xx.h"
59+
#elif defined(STM32U545xx)
60+
#include "partition_stm32u545xx.h"
61+
#else
62+
#error "Please select first the target STM32U5xx device used in your application (in stm32u5xx.h file)"
63+
#endif
64+
65+
#ifdef __cplusplus
66+
}
67+
#endif /* __cplusplus */
68+
69+
#endif /* PARTITION_STM32U5XX_H */
70+
/**
71+
* @}
72+
*/
73+
74+
/**
75+
* @}
76+
*/
77+
78+
79+
80+

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u535xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u545xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u575xx.h

Lines changed: 1644 additions & 1197 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u585xx.h

Lines changed: 1654 additions & 1198 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u595xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u599xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5a5xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5a9xx.h

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

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMSIS/stm32u5xx.h

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,18 @@
5656
application
5757
*/
5858

59-
#if !defined (STM32U575xx) && !defined (STM32U585xx)
60-
/* #define STM32U575xx */ /*!< STM32U575CIU6 STM32U575CIT6 STM32U575RIT6 STM32U575VIT6 STM32U575ZIT6 STM32U575QII6 STM32U575AII6 STM32U575CIU6Q STM32U575CIT6Q STM32U575OIY6Q STM32U575VIT6Q STM32U575QII6Q STM32U575ZIT6Q STM32U575RIT6Q STM32U575CGU6 STM32U575CGT6 STM32U575RGT6 STM32U575VGT6 STM32U575ZGT6 STM32U575QGI6 STM32U575AGI6 STM32U575CGU6Q STM32U575CGT6Q STM32U575OGY6Q STM32U575VGT6Q STM32U575QGI6Q STM32U575ZGT6Q STM32U575RGT6Q STM32U575AGI6Q Devices */
61-
/* #define STM32U585xx */ /*!< STM32U585CIU6 STM32U585CIT6 STM32U585RIT6 STM32U585VIT6 STM32U585AII6 STM32U585QII6 STM32U585ZIT6 STM32U585OIY6Q STM32U585VIT6Q STM32U585QEI6Q STM32U585RIT6Q STM32U585AII6Q STM32U585CIU6Q STM32U585CIT6Q STM32U585ZET6Q Devices */
59+
#if !defined (STM32U575xx) && !defined (STM32U585xx) \
60+
&& !defined (STM32U595xx) && !defined (STM32U599xx) \
61+
&& !defined (STM32U5A5xx) && !defined (STM32U5A9xx) \
62+
&& !defined (STM32U535xx) && !defined (STM32U545xx) \
63+
/* #define STM32U575xx */ /*!< STM32U575CIU6 STM32U575CIT6 STM32U575RIT6 STM32U575VIT6 STM32U575ZIT6 STM32U575QII6 STM32U575AII6 STM32U575CIU6Q STM32U575CIT6Q STM32U575OIY6Q STM32U575VIT6Q STM32U575QII6Q STM32U575ZIT6Q STM32U575RIT6Q STM32U575CGU6 STM32U575CGT6 STM32U575RGT6 STM32U575VGT6 STM32U575ZGT6 STM32U575QGI6 STM32U575AGI6 STM32U575CGU6Q STM32U575CGT6Q STM32U575OGY6Q STM32U575VGT6Q STM32U575QGI6Q STM32U575ZGT6Q STM32U575RGT6Q STM32U575AGI6Q Devices */
64+
/* #define STM32U585xx */ /*!< STM32U585CIU6 STM32U585CIT6 STM32U585RIT6 STM32U585VIT6 STM32U585AII6 STM32U585QII6 STM32U585ZIT6 STM32U585OIY6Q STM32U585VIT6Q STM32U585QEI6Q STM32U585RIT6Q STM32U585AII6Q STM32U585CIU6Q STM32U585CIT6Q STM32U585ZET6Q Devices */
65+
/* #define STM32U595xx */ /*!< STM32U595ZJT6Q Device */
66+
/* #define STM32U599xx */ /*!< STM32U599NJH6Q STM32U599BJY6Q STM32U599NIH6Q Devices */
67+
/* #define STM32U5A5xx */ /*!< STM32U5A5ZJT6Q Device */
68+
/* #define STM32U5A9xx */ /*!< STM32U5A9NJH6Q STM32U5A9BJY6Q Devices */
69+
/* #define STM32U535xx */ /*!< STM32U535CET6 STM32U535CEU6 STM32U535RET6 STM32U535REI6 STM32U535VET6 STM32U535VEI6 STM32U535CET6Q STM32U535CEU6Q STM32U535RET6Q STM32U535REI6Q STM32U535VET6Q STM32U535VEI6Q STM32U535NEY6Q STM32U535JEY6Q Device */
70+
/* #define STM32U545xx */ /*!< STM32U545CET6 STM32U545CEU6 STM32U545RET6 STM32U545REI6 STM32U545VET6 STM32U545VEI6 STM32U545CET6Q STM32U545CEU6Q STM32U545RET6Q STM32U545REI6Q STM32U545VET6Q STM32U545VEI6Q STM32U545NEY6Q STM32U545JEY6Q Device */
6271
#endif
6372

6473
/* Tip: To avoid modifying this file each time you need to switch between these
@@ -74,12 +83,12 @@
7483
#endif /* USE_HAL_DRIVER */
7584

7685
/**
77-
* @brief CMSIS Device version number 1.0.0
86+
* @brief CMSIS Device version number 1.2.0
7887
*/
79-
#define __STM32U5_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
80-
#define __STM32U5_CMSIS_VERSION_SUB1 (0x00) /*!< [23:16] sub1 version */
81-
#define __STM32U5_CMSIS_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
82-
#define __STM32U5_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
88+
#define __STM32U5_CMSIS_VERSION_MAIN (0x01U) /*!< [31:24] main version */
89+
#define __STM32U5_CMSIS_VERSION_SUB1 (0x02U) /*!< [23:16] sub1 version */
90+
#define __STM32U5_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
91+
#define __STM32U5_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
8392
#define __STM32U5_CMSIS_VERSION ((__STM32U5_CMSIS_VERSION_MAIN << 24U)\
8493
|(__STM32U5_CMSIS_VERSION_SUB1 << 16U)\
8594
|(__STM32U5_CMSIS_VERSION_SUB2 << 8U )\
@@ -97,6 +106,18 @@
97106
#include "stm32u575xx.h"
98107
#elif defined(STM32U585xx)
99108
#include "stm32u585xx.h"
109+
#elif defined(STM32U595xx)
110+
#include "stm32u595xx.h"
111+
#elif defined(STM32U599xx)
112+
#include "stm32u599xx.h"
113+
#elif defined(STM32U5A5xx)
114+
#include "stm32u5a5xx.h"
115+
#elif defined(STM32U5A9xx)
116+
#include "stm32u5a9xx.h"
117+
#elif defined(STM32U535xx)
118+
#include "stm32u535xx.h"
119+
#elif defined(STM32U545xx)
120+
#include "stm32u545xx.h"
100121
#else
101122
#error "Please select first the target STM32U5xx device used in your application (in stm32u5xx.h file)"
102123
#endif

targets/TARGET_STM/TARGET_STM32U5/STM32Cube_FW/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ target_sources(mbed-stm32u5cube-fw
2222
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma.c
2323
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma2d.c
2424
STM32U5xx_HAL_Driver/stm32u5xx_hal_dma_ex.c
25+
STM32U5xx_HAL_Driver/stm32u5xx_hal_dsi.c
2526
STM32U5xx_HAL_Driver/stm32u5xx_hal_exti.c
2627
STM32U5xx_HAL_Driver/stm32u5xx_hal_fdcan.c
2728
STM32U5xx_HAL_Driver/stm32u5xx_hal_flash.c
2829
STM32U5xx_HAL_Driver/stm32u5xx_hal_flash_ex.c
2930
STM32U5xx_HAL_Driver/stm32u5xx_hal_fmac.c
31+
STM32U5xx_HAL_Driver/stm32u5xx_hal_gfxmmu.c
3032
STM32U5xx_HAL_Driver/stm32u5xx_hal_gpio.c
33+
STM32U5xx_HAL_Driver/stm32u5xx_hal_gpu2d.c
3134
STM32U5xx_HAL_Driver/stm32u5xx_hal_gtzc.c
3235
STM32U5xx_HAL_Driver/stm32u5xx_hal_hash.c
3336
STM32U5xx_HAL_Driver/stm32u5xx_hal_hash_ex.c
@@ -38,6 +41,8 @@ target_sources(mbed-stm32u5cube-fw
3841
STM32U5xx_HAL_Driver/stm32u5xx_hal_irda.c
3942
STM32U5xx_HAL_Driver/stm32u5xx_hal_iwdg.c
4043
STM32U5xx_HAL_Driver/stm32u5xx_hal_lptim.c
44+
STM32U5xx_HAL_Driver/stm32u5xx_hal_ltdc.c
45+
STM32U5xx_HAL_Driver/stm32u5xx_hal_ltdc_ex.c
4146
STM32U5xx_HAL_Driver/stm32u5xx_hal_mdf.c
4247
STM32U5xx_HAL_Driver/stm32u5xx_hal_mmc.c
4348
STM32U5xx_HAL_Driver/stm32u5xx_hal_mmc_ex.c
@@ -79,6 +84,7 @@ target_sources(mbed-stm32u5cube-fw
7984
STM32U5xx_HAL_Driver/stm32u5xx_hal_usart.c
8085
STM32U5xx_HAL_Driver/stm32u5xx_hal_usart_ex.c
8186
STM32U5xx_HAL_Driver/stm32u5xx_hal_wwdg.c
87+
STM32U5xx_HAL_Driver/stm32u5xx_hal_xspi.c
8288
STM32U5xx_HAL_Driver/stm32u5xx_ll_adc.c
8389
STM32U5xx_HAL_Driver/stm32u5xx_ll_comp.c
8490
STM32U5xx_HAL_Driver/stm32u5xx_ll_cordic.c

0 commit comments

Comments
 (0)