cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't use L1 cache on cube mx, Memory manage also can't use L1 cache

luke gong
Associate II

Why can’t my cubemx configure L1 cache? How to enable it?

Also, the MPU cannot be configured. You can only use the default configuration and modify it in the generate code.

I also configured Memory management, but did not see the enable Cache and MPU synchronization settings

CubeMx 6.16.1 on macos 

MAC 26.1

MCU:STM32H743IIT6

 

 

Snipaste_2025-12-24_11-15-55.pngmemory manage.pngmac system infomation.png

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @luke gong 

You need to make sure that the option "Apply Application Region Settings to Peripherals" is OFF 

GhofraneGSOURI_0-1766570437665.png

Then go back to your MPU configuration: you will be able to enable the CPU I‑Cache and D‑Cache (L1 cache) and modify the settings as needed.

GhofraneGSOURI_1-1766570743132.png

 

THX

Ghofrane

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.

View solution in original post

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @luke gong 

You need to make sure that the option "Apply Application Region Settings to Peripherals" is OFF 

GhofraneGSOURI_0-1766570437665.png

Then go back to your MPU configuration: you will be able to enable the CPU I‑Cache and D‑Cache (L1 cache) and modify the settings as needed.

GhofraneGSOURI_1-1766570743132.png

 

THX

Ghofrane

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.