You've already forked flashfloppy
mirror of
https://github.com/Team-Resurgent/flashfloppy.git
synced 2026-04-30 10:49:33 -07:00
197736be71
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.
64 lines
983 B
ArmAsm
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) }
|
|
}
|