Skip to content

Commit b62970f

Browse files
committed
README update STM32F4 to CUBE V1.26.1
1 parent e18d280 commit b62970f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

targets/TARGET_STM/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br
6565
| F1 | 1.8.3 | https://github.com/STMicroelectronics/STM32CubeF1 |
6666
| F2 | 1.6.0 | https://github.com/STMicroelectronics/STM32CubeF2 |
6767
| F3 | 1.11.2 | https://github.com/STMicroelectronics/STM32CubeF3 |
68-
| F4 | 1.26.0 | https://github.com/STMicroelectronics/STM32CubeF4 |
68+
| F4 | 1.26.1 | https://github.com/STMicroelectronics/STM32CubeF4 |
6969
| F7 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeF7 |
7070
| G0 | 1.4.1 | https://github.com/STMicroelectronics/STM32CubeG0 |
7171
| G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 |

targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
105105
This value must be a multiple of 0x200. */
106106
#else
107-
#include "nvic_addr.h" // MBED
108-
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED
109-
This value must be a multiple of 0x200. */
107+
110108
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
111109
This value must be a multiple of 0x200. */
112110
#endif /* VECT_TAB_SRAM */
@@ -168,6 +166,9 @@ const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
168166
*/
169167
void SystemInit(void)
170168
{
169+
#include "nvic_addr.h" // MBED
170+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED
171+
171172
/* FPU settings ------------------------------------------------------------*/
172173
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
173174
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */

0 commit comments

Comments
 (0)