STM32F030 Erase internal flash page
Dear,
I made a project for STM32F030RC with STM32CubeIDE. when I use "HAL_FLASHEx_Erase" function to erase some flash pages (at end of flash that there is no code on it) , the CPU crash.
I guessed it is depended on interrupts. so I disabled interrupts with __disable_irq before erase and enable with __enable_irq after erase. Then the erase done but after I enable interrupts, the CPU crash.
I tested the __disable_irq and __enable_irq in other place of code in main loop. I saw that some times CPU crash after enable interrupts.
Do you have any idea?
Best regards
Hamid
