2015-08-21 08:28 AM
i am working on stm32f030cc.i implement user boot loader between 0x08000000-0x08003000 and user application onwards.both works fine.i write protect boot loader area.but when power gone and after that when power on device user application not run.when i read memory through STVP i found that every time section 0x08003000-0x080037FF erased means one sector of my user application erased.in user application i never write eney flash.this should be not happen.....
#stm32f0-flash-loader #stm32 #bootloader2015-08-21 08:37 AM
this should be not happen.....
That's why you'll have to spend some time debugging to understand why it's happening.Check the loader, then the app. Chances are you have an off-by-one in a loop doing the erase. Either you have an errant erase, or a write is not working. Instrument your erase/write code, and verify everything is being written as expected.Check for EEPROM emulation code.