cancel
Showing results for 
Search instead for 
Did you mean: 

detect flash is in progress

DUrbano
Associate III
Posted on July 02, 2018 at 11:26

Hi to everyone,

I'm working on STM32F411 and I'm wondering if it's possible at the start of a code, detect if a new flash code is in progress to stop the code execution and wait for the flash. This strange problem is due to working with a code continuosly updated and flashed; I'd like, when my board powers up, that the code execution stops if it detects that I'm flashing a new code. Is it really possible or it is only a dream ?

Kind regards

Davide Urbano

#stm32f4 #flash
1 REPLY 1
AvaTar
Lead
Posted on July 02, 2018 at 12:04

... I'm wondering if it's possible at the start of a code, detect if a new flash code is in progress to stop the code execution and wait for the flash.

No, it's not.

Your MCU has only one Flash bank, and any code execution from Flash stalls while an erase/program is in progress.