2025-04-10 12:56 AM
Hi
For other STM32 (I checked a STM32L452 and STM32F469) I could enable the Flash Instruction prefetch by setting “Prefetch Buffer” to “Enabled” in the RCC settings. This then set PREFETCH_ENABLE to 1 in stm32F4xx_hal_conf.h.
The STM32H562 also as a Prefetch Buffer, but I cannot find the “Prefetch Buffer” option in CubeMX , and PREFETCH_ENABLE is always 0. Was the “Prefetch Buffer” moved or is it missing?
As a work around I can manually call __HAL_FLASH_PREFETCH_BUFFER_ENABLE(), but having the option back would still be nice.
I use STM32CubeMX Version 6.14 with the Firmware Package V1.5.0 to generate a STM32CubeIDE project on Windows 11.
2025-04-10 1:59 AM - edited 2025-04-10 2:05 AM
Hello,
I'm escalating this internally and I will get back to you with any feedback (internal ticket 207309 not accessible by community members).
Thank you for your patience.
2025-04-11 3:47 AM
Hello @MMeie.3 ,
The Prefetch enable buffer option is indeed missing in STM32CubeMx. It will be fixed in the coming revisions of the tool.
Thank you for your contribution.