AnsweredAssumed Answered

STM32F40x flash storage

Question asked by Lukasz Przenioslo on Dec 7, 2015
Latest reply on Dec 7, 2015 by Lukasz Przenioslo
Hello there,
I am using stm32f407vtg (1MB flash). Apart from user program, I need to store some additional data in the flash memory. I need 3 banks: 1kB, 16 kB and 64 kB. I just expirienced that I need to erase whole flash sector in order to write to it (please correct me if I am wrong). In that case, the situation gets a bit complicated If I wanted to write certain banks without touching the others. This is the STM32F40x flash memory map:


If I wanted to use 3 last sectors, I would waste a lot of flash memory. I think It would be better to use sectors 2, 3 and 4 and start user application from sector 5. The question is, how can I tell the debugger, linker and everyone else that needs to know it that my program should start from address 0x08020000 instead of 0x08000000?
I would apreciate all help regarding this topic!