Flashing ELF with stm32cubeprogrammer flashes garbage before image
Hi,
I'm working on the STM32L476-Discovery board, Win10 host.
I created a simple application, which works.
Now I changed the start of the address to 0x08001000:
MEMORY
{
FLASH (rx) : ORIGIN = 0x08001000, LENGTH = 1024K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 96K
}I erase the board (validating 0x08000000 is 0xFF, 0xFF...).
Now I flash my ELF:
STM32_Programmer_CLI.exe -c port=SWD -d .\build\TestAppMin.elfLooking at address 0x08001000 - the application data is correct.
But, looking at address 0x08000000 I don't have 0xFF anymore... I have the beginning of the ELF file - see image:
