Skip to content

Commit 91464b2

Browse files
authored
Merge pull request #12306 from jeromecoutant/PR_STM32L5_NUCLEO
STM32L5: NUCLEO-L552ZE-Q new target
2 parents 617ba27 + e4d0629 commit 91464b2

File tree

246 files changed

+289130
-23
lines changed

Some content is hidden

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

246 files changed

+289130
-23
lines changed

targets/TARGET_STM/README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ https://www.st.com/en/embedded-software/stm32cube-mcu-packages.html
1010

1111
This table summarizes the STM32Cube versions currently used :
1212

13-
| STM32 Serie | Cube version |
14-
|-------------|--------------|
15-
| F0 | 1.9.0 |
16-
| F1 | 1.6.1 |
17-
| F2 | 1.6.0 |
18-
| F3 | 1.9.0 |
19-
| F4 | 1.19.0 |
20-
| F7 | 1.10.0 |
21-
| H7 | 1.4.0 |
22-
| L0 | 1.10.0 |
23-
| L1 | 1.8.1 |
24-
| L4 | 1.11.0 |
25-
| WB | 1.0.0 |
13+
| STM32 Serie | Cube version | GitHub source |
14+
|-------------|--------------|---------------------------------------------------|
15+
| F0 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF0 |
16+
| F1 | 1.6.1 | https://github.com/STMicroelectronics/STM32CubeF1 |
17+
| F2 | 1.6.0 | https://github.com/STMicroelectronics/STM32CubeF2 |
18+
| F3 | 1.9.0 | https://github.com/STMicroelectronics/STM32CubeF3 |
19+
| F4 | 1.19.0 | https://github.com/STMicroelectronics/STM32CubeF4 |
20+
| F7 | 1.10.0 | https://github.com/STMicroelectronics/STM32CubeF7 |
21+
| G0 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeG0 |
22+
| H7 | 1.4.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
23+
| L0 | 1.10.0 | https://github.com/STMicroelectronics/STM32CubeL0 |
24+
| L1 | 1.8.1 | https://github.com/STMicroelectronics/STM32CubeL1 |
25+
| L4 | 1.11.0 | https://github.com/STMicroelectronics/STM32CubeL4 |
26+
| L5 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeL5 |
27+
| WB | 1.0.0 | https://github.com/STMicroelectronics/STM32CubeWB |
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* mbed Microcontroller Library
2+
* SPDX-License-Identifier: BSD-3-Clause
3+
******************************************************************************
4+
*
5+
* Copyright (c) 2017 STMicroelectronics.
6+
* All rights reserved.
7+
*
8+
* This software component is licensed by ST under BSD 3-Clause license,
9+
* the "License"; You may not use this file except in compliance with the
10+
* License. You may obtain a copy of the License at:
11+
* opensource.org/licenses/BSD-3-Clause
12+
*
13+
******************************************************************************
14+
*/
15+
16+
#ifndef MBED_PERIPHERALNAMES_H
17+
#define MBED_PERIPHERALNAMES_H
18+
19+
#include "cmsis.h"
20+
21+
#ifdef __cplusplus
22+
extern "C" {
23+
#endif
24+
25+
typedef enum {
26+
ADC_1 = (int)ADC1_BASE,
27+
ADC_2 = (int)ADC2_BASE
28+
} ADCName;
29+
30+
typedef enum {
31+
DAC_1 = (int)DAC_BASE
32+
} DACName;
33+
34+
typedef enum {
35+
UART_1 = (int)USART1_BASE,
36+
UART_2 = (int)USART2_BASE,
37+
UART_3 = (int)USART3_BASE,
38+
UART_4 = (int)UART4_BASE,
39+
UART_5 = (int)UART5_BASE,
40+
LPUART_1 = (int)LPUART1_BASE
41+
} UARTName;
42+
43+
typedef enum {
44+
SPI_1 = (int)SPI1_BASE,
45+
SPI_2 = (int)SPI2_BASE,
46+
SPI_3 = (int)SPI3_BASE
47+
} SPIName;
48+
49+
typedef enum {
50+
I2C_1 = (int)I2C1_BASE,
51+
I2C_2 = (int)I2C2_BASE,
52+
I2C_3 = (int)I2C3_BASE,
53+
I2C_4 = (int)I2C4_BASE
54+
} I2CName;
55+
56+
typedef enum {
57+
PWM_1 = (int)TIM1_BASE,
58+
PWM_2 = (int)TIM2_BASE,
59+
PWM_3 = (int)TIM3_BASE,
60+
PWM_4 = (int)TIM4_BASE,
61+
PWM_5 = (int)TIM5_BASE,
62+
PWM_8 = (int)TIM8_BASE,
63+
PWM_15 = (int)TIM15_BASE,
64+
PWM_16 = (int)TIM16_BASE,
65+
PWM_17 = (int)TIM17_BASE
66+
} PWMName;
67+
68+
typedef enum {
69+
CAN_1 = (int)FDCAN1_BASE
70+
} CANName;
71+
72+
typedef enum {
73+
QSPI_1 = (int)OCTOSPI1_R_BASE
74+
} QSPIName;
75+
76+
typedef enum {
77+
USB_FS = (int)USB_BASE,
78+
} USBName;
79+
80+
#ifdef __cplusplus
81+
}
82+
#endif
83+
84+
#endif
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/**
2+
******************************************************************************
3+
* @file partition_stm32l5xx.h
4+
* @author MCD Application Team
5+
* @brief CMSIS STM32L5xx Device Header File for Initial Setup for
6+
* Secure / Non-Secure Zones based on CMSIS CORE V5.3.1
7+
*
8+
* The file is included in system_stm32l5xx_s.c in secure application.
9+
* It includes the configuration section that allows to select the
10+
* STM32L5xx device partitioning file for system core secure attributes
11+
* and interrupt secure and non-secure assignment.
12+
*
13+
******************************************************************************
14+
* @attention
15+
*
16+
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
17+
* All rights reserved.</center></h2>
18+
*
19+
* This software component is licensed by ST under BSD 3-Clause license,
20+
* the "License"; You may not use this file except in compliance with the
21+
* License. You may obtain a copy of the License at:
22+
* opensource.org/licenses/BSD-3-Clause
23+
*
24+
******************************************************************************
25+
*/
26+
27+
/** @addtogroup CMSIS
28+
* @{
29+
*/
30+
31+
/** @addtogroup stm32l5xx
32+
* @{
33+
*/
34+
35+
#ifndef PARTITION_STM32L5XX_H
36+
#define PARTITION_STM32L5XX_H
37+
38+
#ifdef __cplusplus
39+
extern "C" {
40+
#endif /* __cplusplus */
41+
42+
/** @addtogroup Secure_configuration_section
43+
* @{
44+
*/
45+
46+
#if defined(STM32L552xx)
47+
#include "partition_stm32l552xx.h"
48+
#elif defined(STM32L562xx)
49+
#include "partition_stm32l562xx.h"
50+
#else
51+
#error "Please select first the target STM32L5xx device used in your application (in stm32l5xx.h file)"
52+
#endif
53+
54+
55+
#ifdef __cplusplus
56+
}
57+
#endif /* __cplusplus */
58+
59+
#endif /* PARTITION_STM32L5XX_H */
60+
/**
61+
* @}
62+
*/
63+
64+
/**
65+
* @}
66+
*/
67+
68+
69+
70+
71+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)