cancel
Showing results for 
Search instead for 
Did you mean: 

stm32l4xx_hal_flash_ex.c - HAL_FLASHEx_Erase - FLASH_FlushCaches();

mreuter
Associate
Posted on September 23, 2016 at 20:24

I am observing an odd behavior with HAL_FLASHEx_Erase.  When called to erase multiple pages, the function waits until all pages have been erased before calling FLASH_FlushCaches.  I have observed that my simple SysTick interrupt continues to execute during the page erase operation even when execution and the erase page are in the same bank.  If I disable the caches, then the SysTick interrupt does not execute during the page erase (22ms duration).  

Should the FLASH_FlushCaches call be moved to right before the call to FLASH_PageErase inside the for loop?

Thanks.
2 REPLIES 2
Walid FTITI_O
Senior II
Posted on September 27, 2016 at 18:00

Hi reuter.mike,

I submit your request internally for check.

-Hannibal-

Imen.D
ST Employee
Posted on January 03, 2017 at 15:13

Dear

‌,

This issue is fixed in the release 1.6.0 of Firmware package STM32CubeL4.

Thanks for bringing this issue to our attention.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen