cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable Flash Instruction prefetch for a STM32H562 in CubeMX?

MMeie.3
Associate II

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.

MMeie3_0-1744271642265.png

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.

MMeie3_1-1744271735322.png

 

2 REPLIES 2
mƎALLEm
ST Employee

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

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. 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.