How to add header on beginning of FW for bootloader use
Hi Bernard
There is a problem that when I add the header on linker scripts file (stm32l073xx_flash.ld)
The original file is
/* Entry Point */
ENTRY(Reset_Handler)
/* Define output sections */
SECTIONS
{
.text :
{
KEEP(*(.isr_vector))
*(.text*)
KEEP(*(.init))
KEEP(*(.fini))
.....
The original entry point is Reset_Handler~~ and the Reset_Handler in (startup_stm32l073xx.s) will do
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
bl __libc_init_array
/* Call the application's entry point.*/
bl main
What should I do to add the KEEP(*(.fwdhr)) on stm32l073xx_flash.ld?
The fwdhr's third word is entrypoint , but the original entrypoint is Reset_Handler, I am confused.
Nick