Skip to main content
mreuter
Visitor II
September 23, 2016
Question

stm32l4xx_hal_flash_ex.c - HAL_FLASHEx_Erase - FLASH_FlushCaches();

  • September 23, 2016
  • 2 replies
  • 942 views
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.
    This topic has been closed for replies.

    2 replies

    Walid FTITI_O
    Visitor II
    September 27, 2016
    Posted on September 27, 2016 at 18:00

    Hi reuter.mike,

    I submit your request internally for check.

    -Hannibal-

    Technical Moderator
    January 3, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks