Skip to content

Commit 97cb851

Browse files
committed
Add bootloaderd support to NUCLEO_F446RE target
1 parent df88a9d commit 97cb851

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/TARGET_NUCLEO_F446RE/system_clock.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@
3737
#include "stm32f4xx.h"
3838
#include "mbed_assert.h"
3939

40-
/*!< Uncomment the following line if you need to relocate your vector Table in
41-
Internal SRAM. */
42-
/* #define VECT_TAB_SRAM */
43-
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
44-
This value must be a multiple of 0x200. */
45-
46-
4740
// clock source is selected with CLOCK_SOURCE in json config
4841
#define USE_PLL_HSE_EXTC 0x8 // Use external clock (ST Link MCO)
4942
#define USE_PLL_HSE_XTAL 0x4 // Use external xtal (X3 on board - not provided by default)
@@ -97,13 +90,6 @@ void SystemInit(void)
9790
SystemInit_ExtMemCtl();
9891
#endif /* DATA_IN_ExtSRAM || DATA_IN_ExtSDRAM */
9992

100-
/* Configure the Vector Table location add offset address ------------------*/
101-
#ifdef VECT_TAB_SRAM
102-
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
103-
#else
104-
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
105-
#endif
106-
10793
}
10894

10995

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/device/TOOLCHAIN_GCC_ARM/STM32F446XE.ld

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
#if !defined(MBED_APP_START)
2+
#define MBED_APP_START 0x08000000
3+
#endif
4+
5+
#if !defined(MBED_APP_SIZE)
6+
#define MBED_APP_SIZE 512K
7+
#endif
8+
19
/* Linker script to configure memory regions. */
210
MEMORY
3-
{
4-
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K
11+
{
12+
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
513
RAM (rwx) : ORIGIN = 0x200001C4, LENGTH = 128k - 0x1C4
614
}
715

816
/* Linker script to place sections and symbol values. Should be used together
917
* with other linker script that defines memory regions FLASH and RAM.
1018
* It references following symbols, which must be defined in code:
1119
* Reset_Handler : Entry of reset handler
12-
*
20+
*
1321
* It defines following symbols, which code can use without definition:
1422
* __exidx_start
1523
* __exidx_end

targets/targets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,8 @@
11381138
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
11391139
"device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH"],
11401140
"release_versions": ["2", "5"],
1141-
"device_name": "STM32F446RE"
1141+
"device_name": "STM32F446RE",
1142+
"bootloader_supported": true
11421143
},
11431144
"NUCLEO_F446ZE": {
11441145
"inherits": ["FAMILY_STM32"],

0 commit comments

Comments
 (0)