cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 flash problem

karan
Associate III
Posted on August 21, 2015 at 17:28

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 #bootloader
1 REPLY 1
Posted on August 21, 2015 at 17:37

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.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..