cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt during execution of function FLASH_Erase_Sector

UpStream
Associate II

Hi​

Is there any way to have the function "FLASH_Erase_Sector" operate with an interrupt during execution?

Of course, the function must be executed only on the SRAM.

Target is STM32F407.

1 REPLY 1
gbm
Lead II

Possible but not easy. You need to relocate exception vectors to RAM and make sure that the interrupt service routines you intend to use:

  1. are in RAM
  2. do not call any routines not in RAM, including the compiler helpers - to ensure this you need to analyze the .list files for the ISRs in question.

Much easier to achieve with dual-bank Flash.