mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #8599 from bcostm/F769NI_bootloader
DISCO_F769NI: Add bootloader supportpull/8614/head
commit
b1904a5d65
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include "stm32f7xx.h"
|
#include "stm32f7xx.h"
|
||||||
#include "mbed_error.h"
|
#include "mbed_error.h"
|
||||||
|
#include "nvic_addr.h"
|
||||||
|
|
||||||
/*!< Uncomment the following line if you need to relocate your vector Table in
|
/*!< Uncomment the following line if you need to relocate your vector Table in
|
||||||
Internal SRAM. */
|
Internal SRAM. */
|
||||||
|
@ -92,7 +93,7 @@ void SystemInit(void)
|
||||||
#ifdef VECT_TAB_SRAM
|
#ifdef VECT_TAB_SRAM
|
||||||
SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
||||||
#else
|
#else
|
||||||
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#! armcc -E
|
||||||
; Scatter-Loading Description File
|
; Scatter-Loading Description File
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; Copyright (c) 2016, STMicroelectronics
|
; Copyright (c) 2016, STMicroelectronics
|
||||||
|
@ -27,16 +28,25 @@
|
||||||
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; STM32F769NI: 2048 KB FLASH (0x200000) + 512 KB SRAM (0x80000)
|
#if !defined(MBED_APP_START)
|
||||||
LR_IROM1 0x08000000 0x200000 { ; load region size_region
|
#define MBED_APP_START 0x08000000
|
||||||
|
#endif
|
||||||
|
|
||||||
ER_IROM1 0x08000000 0x200000 { ; load address = execution address
|
; 2048 KB FLASH (0x200000)
|
||||||
|
#if !defined(MBED_APP_SIZE)
|
||||||
|
#define MBED_APP_SIZE 0x200000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
|
||||||
|
|
||||||
|
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
|
||||||
*.o (RESET, +First)
|
*.o (RESET, +First)
|
||||||
*(InRoot$$Sections)
|
*(InRoot$$Sections)
|
||||||
.ANY (+RO)
|
.ANY (+RO)
|
||||||
}
|
}
|
||||||
|
|
||||||
; Total: 126 vectors = 504 bytes (0x1F8) to be reserved in RAM
|
; 512KB SRAM (0x80000)
|
||||||
|
; Total: 126 vectors = 504 bytes (0x1F8 + 0 byte for 8-byte data alignment) to be reserved in RAM
|
||||||
RW_IRAM1 (0x20000000+0x1F8) (0x80000-0x1F8) { ; RW data
|
RW_IRAM1 (0x20000000+0x1F8) (0x80000-0x1F8) { ; RW data
|
||||||
.ANY (+RW +ZI)
|
.ANY (+RW +ZI)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#! armcc -E
|
||||||
; Scatter-Loading Description File
|
; Scatter-Loading Description File
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; Copyright (c) 2016, STMicroelectronics
|
; Copyright (c) 2016, STMicroelectronics
|
||||||
|
@ -27,16 +28,25 @@
|
||||||
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; STM32F769NI: 2048 KB FLASH (0x200000) + 512 KB SRAM (0x80000)
|
#if !defined(MBED_APP_START)
|
||||||
LR_IROM1 0x08000000 0x200000 { ; load region size_region
|
#define MBED_APP_START 0x08000000
|
||||||
|
#endif
|
||||||
|
|
||||||
ER_IROM1 0x08000000 0x200000 { ; load address = execution address
|
; 2048 KB FLASH (0x200000)
|
||||||
|
#if !defined(MBED_APP_SIZE)
|
||||||
|
#define MBED_APP_SIZE 0x200000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
|
||||||
|
|
||||||
|
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
|
||||||
*.o (RESET, +First)
|
*.o (RESET, +First)
|
||||||
*(InRoot$$Sections)
|
*(InRoot$$Sections)
|
||||||
.ANY (+RO)
|
.ANY (+RO)
|
||||||
}
|
}
|
||||||
|
|
||||||
; Total: 126 vectors = 504 bytes (0x1F8) to be reserved in RAM
|
; 512KB SRAM (0x80000)
|
||||||
|
; Total: 126 vectors = 504 bytes (0x1F8 + 0 byte for 8-byte data alignment) to be reserved in RAM
|
||||||
RW_IRAM1 (0x20000000+0x1F8) (0x80000-0x1F8) { ; RW data
|
RW_IRAM1 (0x20000000+0x1F8) (0x80000-0x1F8) { ; RW data
|
||||||
.ANY (+RW +ZI)
|
.ANY (+RW +ZI)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
|
#if !defined(MBED_APP_START)
|
||||||
|
#define MBED_APP_START 0x08000000
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(MBED_APP_SIZE)
|
||||||
|
#define MBED_APP_SIZE 2048K
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Linker script to configure memory regions. */
|
/* Linker script to configure memory regions. */
|
||||||
|
/* Total: 126 vectors = 504 bytes (0x1F8 + 0 byte for 8-byte data alignment) to be reserved in RAM */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
|
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
|
||||||
RAM (rwx) : ORIGIN = 0x200001F8, LENGTH = 512K - 0x1F8
|
RAM (rwx) : ORIGIN = 0x200001F8, LENGTH = 512K - 0x1F8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
/* [ROM = 2048kb = 0x200000] */
|
/* [ROM = 2048kb = 0x200000] */
|
||||||
define symbol __intvec_start__ = 0x08000000;
|
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
|
||||||
define symbol __region_ROM_start__ = 0x08000000;
|
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x200000; }
|
||||||
define symbol __region_ROM_end__ = 0x081FFFFF;
|
|
||||||
|
|
||||||
/* [RAM = 512kb = 0x80000] Vector table dynamic copy: 126 vectors = 504 bytes (0x1F8) to be reserved in RAM */
|
define symbol __intvec_start__ = MBED_APP_START;
|
||||||
|
define symbol __region_ROM_start__ = MBED_APP_START;
|
||||||
|
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
|
||||||
|
|
||||||
|
/* [RAM = 512kb = 0x80000] */
|
||||||
|
/* Total: 126 vectors = 504 bytes (0x1F8 + 0 byte for 8-byte data alignment) to be reserved in RAM */
|
||||||
define symbol __NVIC_start__ = 0x20000000;
|
define symbol __NVIC_start__ = 0x20000000;
|
||||||
define symbol __NVIC_end__ = 0x200001F7; /* Aligned on 8 bytes */
|
define symbol __NVIC_end__ = 0x200001F7;
|
||||||
define symbol __region_RAM_start__ = 0x200001F8;
|
define symbol __region_RAM_start__ = 0x200001F8;
|
||||||
define symbol __region_RAM_end__ = 0x2007FFFF;
|
define symbol __region_RAM_end__ = 0x2007FFFF;
|
||||||
|
|
||||||
|
|
|
@ -2076,6 +2076,7 @@
|
||||||
"detect_code": ["0817"],
|
"detect_code": ["0817"],
|
||||||
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
|
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
|
||||||
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
|
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
|
||||||
|
"bootloader_supported": true,
|
||||||
"release_versions": ["2", "5"],
|
"release_versions": ["2", "5"],
|
||||||
"device_name": "STM32F769NI",
|
"device_name": "STM32F769NI",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
|
|
Loading…
Reference in New Issue