SW4STM STM32F0 changing program start address in flash.
Hi,
I'm developing bootloader on NUCLEO-F072RB board. I have ready bootloader code to jump for user application placed on specified address.
Now I'm writing this application so I'm changing this line in STM32F072RBTx_FLASH.ld file
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 128K
also I have remapped vector table into RAM.
After downloading user application into microcontroller I have noticed that program is in deed placed on specified location, but at the beginning of flash at the address 0x08000000 there are some bytes starting with "|ELF" string in ASCII and after that are zeros - it should be 0xFF's.
My bootloader application successfully jumps to that address and starts the program (I know that because I send some data on UART) but after a moment program hangs.
Can somebody help me with this case - basically I don't how to places all the program after specified address and left firsts sectors of flash left unprogrammed.
Thanks in advance, BR Daniel.