Files
Keir Fraser 197736be71 at32: Artery MCU does not have backup regs in the STM32 location
Hence the firmware-update flag simply did not work. Instead copy the
flag-in-ram approach already used by the AT32F435 build. Keep the
flag-in-bkp approach only for STM32F105, and only for compatibility
with old versions of the update bootloader.
2025-04-12 10:09:51 +01:00

64 lines
983 B
ArmAsm

ENTRY(vector_table)
MEMORY
{
FLASH (rx) : ORIGIN = FLASH_BASE, LENGTH = FLASH_LEN
RAM (rwx) : ORIGIN = RAM_BASE, LENGTH = RAM_LEN
}
SECTIONS
{
.text : {
_stext = .;
*(.vector_table)
*(.vector_table*)
_smaintext = .;
*(.text)
*(.text*)
_emaintext = .;
*(.rodata)
*(.rodata*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
_etext = .;
} >FLASH
.flags : {
_reset_flag = .;
. = . + 4;
} >RAM
.data : AT (_etext) {
. = ALIGN(4);
_sdat = .;
*(.data)
*(.data*)
*(.ramfuncs)
. = ALIGN(4);
_edat = .;
_ldat = LOADADDR(.data);
} >RAM
.bss : {
. = ALIGN(8);
_irq_stackbottom = .;
. = . + 512;
_irq_stacktop = .;
_thread_stackbottom = .;
. = . + 1024;
_thread_stacktop = .;
_sbss = .;
*(.bss)
*(.bss*)
. = ALIGN(4);
_ebss = .;
} >RAM
/DISCARD/ : {
*(.eh_frame)
}
.ARM.attributes 0 : { *(.ARM.attributes) }
}