cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Erase Problem After Reset

DCtech
Associate II

I've flash erase problem after reset.

My source code routine like this:

1) Boot code start at address 0x08000000

2) Than read eeprom value if eeprom value is User value

3) And jump user application. ( To 0x080A0000)

4) After the successfuly jumping, I get new firmware updte request and write to eeprom value to BOOT and reset the device

5) Than Boot Code start again at 0x08000000 address and if eeprom value BOOT than erase the User App Area address( 0x080A0000).

But in the 5th step, 0x080A0000 address couldnt erase although any erase fault flag return.

I tried without jump the User code, I try to erase 0x080A0000 area in 1st step I could erase successfuly. But If I jump User App and reset the device I coudnt erase 0x080A0000 address. What is the reason for this problem and how can I solve this ?

(stm32f429)

5 REPLIES 5
TDK
Guru

Look at the error flags returned and debug accordingly. The chip doesn’t care which part of the code you’re erasing from, must be another explanation. Show the code you’re using to erase.

If you feel a post has answered your question, please click "Accept as Solution".

RAM retains content across a reset... just saying​

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

When I use the NVIC_SystemReset() function Is ram retains content ?

Yes
If you feel a post has answered your question, please click "Accept as Solution".
ZKURT.1
Senior

Hi. What program do you use to slice?