Skip to content

Commit 0614e92

Browse files
authored
Merge pull request #13083 from jeromecoutant/PR_H7_CUBE170
STM32H7 update drivers version to CUBE V1.7.0
2 parents 0b0ab6b + 048f454 commit 0614e92

File tree

311 files changed

+316257
-16476
lines changed

Some content is hidden

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

311 files changed

+316257
-16476
lines changed

features/netsocket/emac-drivers/TARGET_STM/mbed_lib.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
"eth-rxbufnb": 2,
5050
"eth-txbufnb": 4
5151
},
52+
"STM32H7": {
53+
"eth-txbufnb": 10
54+
},
5255
"ARCH_MAX": {
5356
"eth-phy-address": 1
5457
}

targets/TARGET_STM/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
6868
| F4 | 1.19.0 | https://github.com/STMicroelectronics/STM32CubeF4 |
6969
| F7 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeF7 |
7070
| G0 | 1.3.0 | https://github.com/STMicroelectronics/STM32CubeG0 |
71-
| H7 | 1.4.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
71+
| H7 | 1.7.0 | https://github.com/STMicroelectronics/STM32CubeH7 |
7272
| L0 | 1.10.0 | https://github.com/STMicroelectronics/STM32CubeL0 |
7373
| L1 | 1.8.1 | https://github.com/STMicroelectronics/STM32CubeL1 |
7474
| L4 | 1.11.0 | https://github.com/STMicroelectronics/STM32CubeL4 |

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h742xx.h

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

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/device/stm32h743xx.h renamed to targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h743xx.h

Lines changed: 366 additions & 251 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/device/stm32h747xx.h renamed to targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h747xx.h

Lines changed: 370 additions & 254 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h750xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h753xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h755xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h757xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7a3xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7a3xxq.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7b0xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7b0xxq.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7b3xx.h

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

targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7b3xxq.h

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

targets/TARGET_STM/TARGET_STM32H7/device/stm32h7xx.h renamed to targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/stm32h7xx.h

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
*/
6060

6161
#if !defined (STM32H743xx) && !defined (STM32H753xx) && !defined (STM32H750xx) && !defined (STM32H742xx) && \
62-
!defined (STM32H745xx) && !defined (STM32H755xx) && !defined (STM32H747xx) && !defined (STM32H757xx)
62+
!defined (STM32H745xx) && !defined (STM32H755xx) && !defined (STM32H747xx) && !defined (STM32H757xx) && \
63+
!defined (STM32H7A3xx) && !defined (STM32H7A3xxQ) && !defined (STM32H7B3xx) && !defined (STM32H7B3xxQ) && !defined (STM32H7B0xx) && !defined (STM32H7B0xxQ)
6364
/* #define STM32H742xx */ /*!< STM32H742VI, STM32H742ZI, STM32H742AI, STM32H742II, STM32H742BI, STM32H742XI Devices */
6465
/* #define STM32H743xx */ /*!< STM32H743VI, STM32H743ZI, STM32H743AI, STM32H743II, STM32H743BI, STM32H743XI Devices */
6566
/* #define STM32H753xx */ /*!< STM32H753VI, STM32H753ZI, STM32H753AI, STM32H753II, STM32H753BI, STM32H753XI Devices */
@@ -68,6 +69,11 @@
6869
/* #define STM32H757xx */ /*!< STM32H757ZI, STM32H757AI, STM32H757II, STM32H757BI, STM32H757XI Devices */
6970
/* #define STM32H745xx */ /*!< STM32H745ZI, STM32H745II, STM32H745BI, STM32H745XI Devices */
7071
/* #define STM32H755xx */ /*!< STM32H755ZI, STM32H755II, STM32H755BI, STM32H755XI Devices */
72+
/* #define STM32H7B0xx */ /*!< STM32H7B0ABIxQ, STM32H7B0IBTx, STM32H7B0RBTx, STM32H7B0VBTx, STM32H7B0ZBTx, STM32H7B0IBKxQ */
73+
/* #define STM32H7A3xx */ /*!< STM32H7A3IIK6, STM32H7A3IIT6, STM32H7A3NIH6, STM32H7A3RIT6, STM32H7A3VIH6, STM32H7A3VIT6, STM32H7A3ZIT6 */
74+
/* #define STM32H7A3xxQ */ /*!< STM32H7A3QIY6Q, STM32H7A3IIK6Q, STM32H7A3IIT6Q, STM32H7A3LIH6Q, STM32H7A3VIH6Q, STM32H7A3VIT6Q, STM32H7A3AII6Q, STM32H7A3ZIT6Q */
75+
/* #define STM32H7B3xx */ /*!< STM32H7B3IIK6, STM32H7B3IIT6, STM32H7B3NIH6, STM32H7B3RIT6, STM32H7B3VIH6, STM32H7B3VIT6, STM32H7B3ZIT6 */
76+
/* #define STM32H7B3xxQ */ /*!< STM32H7B3QIY6Q, STM32H7B3IIK6Q, STM32H7B3IIT6Q, STM32H7B3LIH6Q, STM32H7B3VIH6Q, STM32H7B3VIT6Q, STM32H7B3AII6Q, STM32H7B3ZIT6Q */
7177
#endif
7278

7379
/* Tip: To avoid modifying this file each time you need to switch between these
@@ -88,10 +94,10 @@
8894
#endif /* USE_HAL_DRIVER */
8995

9096
/**
91-
* @brief CMSIS Device version number V1.6.0
97+
* @brief CMSIS Device version number V1.8.0
9298
*/
9399
#define __STM32H7xx_CMSIS_DEVICE_VERSION_MAIN (0x01) /*!< [31:24] main version */
94-
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x06) /*!< [23:16] sub1 version */
100+
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB1 (0x08) /*!< [23:16] sub1 version */
95101
#define __STM32H7xx_CMSIS_DEVICE_VERSION_SUB2 (0x00) /*!< [15:8] sub2 version */
96102
#define __STM32H7xx_CMSIS_DEVICE_VERSION_RC (0x00) /*!< [7:0] release candidate */
97103
#define __STM32H7xx_CMSIS_DEVICE_VERSION ((__CMSIS_DEVICE_VERSION_MAIN << 24)\
@@ -123,6 +129,18 @@
123129
#include "stm32h747xx.h"
124130
#elif defined(STM32H757xx)
125131
#include "stm32h757xx.h"
132+
#elif defined(STM32H7B0xx)
133+
#include "stm32h7b0xx.h"
134+
#elif defined(STM32H7B0xxQ)
135+
#include "stm32h7b0xxq.h"
136+
#elif defined(STM32H7A3xx)
137+
#include "stm32h7a3xx.h"
138+
#elif defined(STM32H7B3xx)
139+
#include "stm32h7b3xx.h"
140+
#elif defined(STM32H7A3xxQ)
141+
#include "stm32h7a3xxq.h"
142+
#elif defined(STM32H7B3xxQ)
143+
#include "stm32h7b3xxq.h"
126144
#else
127145
#error "Please select first the target STM32H7xx device used in your application (in stm32h7xx.h file)"
128146
#endif
@@ -149,8 +167,8 @@ typedef enum
149167

150168
typedef enum
151169
{
152-
ERROR = 0,
153-
SUCCESS = !ERROR
170+
SUCCESS = 0,
171+
ERROR = !SUCCESS
154172
} ErrorStatus;
155173

156174
/**

targets/TARGET_STM/TARGET_STM32H7/device/system_stm32h7xx.h renamed to targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/CMSIS/system_stm32h7xx.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@
5555
is no need to call the 2 first functions listed above, since SystemCoreClock
5656
variable is updated automatically.
5757
*/
58-
#if defined(DUAL_CORE) && defined(CORE_CM4)
59-
#define SystemCoreClock SystemD2Clock /*!< System Domain1 Clock Frequency */
60-
#else
61-
#define SystemCoreClock SystemD1Clock
62-
#endif
63-
extern uint32_t SystemD1Clock; /*!< System Domain1 Clock Frequency */
58+
extern uint32_t SystemCoreClock; /*!< System Domain1 Clock Frequency */
6459
extern uint32_t SystemD2Clock; /*!< System Domain2 Clock Frequency */
6560
extern const uint8_t D1CorePrescTable[16] ; /*!< D1CorePrescTable prescalers table values */
6661

0 commit comments

Comments
 (0)