From b62970fdf1ee4e09e5e4cdf6a5022cf9dbba4509 Mon Sep 17 00:00:00 2001 From: reme Date: Thu, 15 Apr 2021 09:21:54 +0200 Subject: [PATCH] README update STM32F4 to CUBE V1.26.1 --- targets/TARGET_STM/README.md | 2 +- .../TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/targets/TARGET_STM/README.md b/targets/TARGET_STM/README.md index b7e9d0f9b2..4609726422 100644 --- a/targets/TARGET_STM/README.md +++ b/targets/TARGET_STM/README.md @@ -65,7 +65,7 @@ This table summarizes the STM32Cube versions currently used in Mbed OS master br | F1 | 1.8.3 | https://github.com/STMicroelectronics/STM32CubeF1 | | F2 | 1.6.0 | https://github.com/STMicroelectronics/STM32CubeF2 | | F3 | 1.11.2 | https://github.com/STMicroelectronics/STM32CubeF3 | -| F4 | 1.26.0 | https://github.com/STMicroelectronics/STM32CubeF4 | +| F4 | 1.26.1 | https://github.com/STMicroelectronics/STM32CubeF4 | | F7 | 1.16.0 | https://github.com/STMicroelectronics/STM32CubeF7 | | G0 | 1.4.1 | https://github.com/STMicroelectronics/STM32CubeG0 | | G4 | 1.1.0 | https://github.com/STMicroelectronics/STM32CubeG4 | diff --git a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c index c79a3d89ff..29f8d1e11f 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c +++ b/targets/TARGET_STM/TARGET_STM32F4/STM32Cube_FW/system_stm32f4xx.c @@ -104,9 +104,7 @@ #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #else -#include "nvic_addr.h" // MBED - SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED - This value must be a multiple of 0x200. */ + #define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ #endif /* VECT_TAB_SRAM */ @@ -168,6 +166,9 @@ const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; */ void SystemInit(void) { +#include "nvic_addr.h" // MBED + SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; // MBED + /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */