stm32l4xx_hal_flash_ex.c - HAL_FLASHEx_Erase - FLASH_FlushCaches();
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.