2026-04-24 6:09 AM - last edited on 2026-04-24 6:40 AM by mƎALLEm
Hi all,
I'm trying to replay the demo from this video
https://www.youtube.com/watch?v=Kn6JHVcY7hA
The provisioning and debug authentication works fine, but the application hangs.
I never passes the MX_ICACHE_Init() function.
And sometimes in the MPU init or config function.
The project is standard generated code, I'm using STM32H573I-DK but empty chip project like in the video.
Project settings :
The project was imported in STM32CubeIDE 2.1.1 and build fine.
I've used provisioning.bat to provision my board to CLOSED.
LD1 on the board turns on but doesn't blink.
After connecting to the board with Debug Authentication it seems to hang in
MX_ICACHE_Init -> if (HAL_ICACHE_ConfigAssociativityMode(ICACHE_1WAY) != HAL_OK) -> Error_Handler()
Why would it go into Error_Handler out of MX_ICACHE_Init when this is enabled by default by CubeMX? I haven't changed anything on this.
My project is attached including IOC file. I've used default keys so no secrets here.
Edit 1 :
When I comment out MX_ICACHE_Init() it works fine!
So for some reason the MX_ICACHE_Init() function causes issues...
2026-04-28 11:16 AM
Hello @Marty_Revival ,
This issue is very probably related to the fact that Icache is already enabled in STiROT.
The MX_ICACHE_Init is expecting an execution from non active cache.
So, you need first to deinit the cache if it is not setup in the way you want.
Best regards
Jocelyn