Skip to main content
DCtech
Associate III
February 7, 2022
Question

Flash Erase Problem After Reset

  • February 7, 2022
  • 3 replies
  • 1908 views

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)

This topic has been closed for replies.

3 replies

TDK
Super User
February 7, 2022

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""."
Tesla DeLorean
Guru
February 7, 2022

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
DCtech
DCtechAuthor
Associate III
February 9, 2022

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

TDK
Super User
February 9, 2022
Yes
"If you feel a post has answered your question, please click ""Accept as Solution""."
ZKURT.1
Senior
February 9, 2022

Hi. What program do you use to slice?