Files
micropython/ports/stm32/mboot/stm32_memory_n6.ld
Damien George acb294f61a stm32/mboot: Add support for STM32N6xx MCUs.
Works in the usual USB DFU mode, and can program external SPI flash.  It
will enable XSPI memory-mapped mode before jumping to the application
firmware in the external SPI flash.

Signed-off-by: Damien George <damien@micropython.org>
2025-07-08 16:25:14 +10:00

19 lines
752 B
Plaintext

/*
Linker script fragment for mboot on an STM32N6xx MCU.
This defines the memory sections for the bootloader to use.
On N6, the hardware bootloader loads the first 512k of external flash into
the upper part of SRAM2 AXI S, starting at 0x34180000. The first 1024 bytes
is a header. Then comes the actual code, starting with the vector table.
*/
MEMORY
{
FLASH_BL (rx) : ORIGIN = 0x34180400, LENGTH = 31744 /* AXISRAM2_S */
RAM (xrw) : ORIGIN = 0x341e0000, LENGTH = 128K /* AXISRAM2_S */
}
/* Location of protected flash area which must not be modified, because mboot lives there. */
_mboot_protected_flash_start = ORIGIN(FLASH_BL);
_mboot_protected_flash_end_exclusive = ORIGIN(FLASH_BL) + LENGTH(FLASH_BL);