Skip to main content
Lyu.1
Senior
September 4, 2025
Solved

MPU causes unaligned access fault

  • September 4, 2025
  • 1 reply
  • 270 views

Hi,Master:

MCU: STM32H743II

Question:

I configure the MPU for RAM as follows:

mpu_set_protection( 0x24000000, 
 MPU_REGION_SIZE_512KB, 
 MPU_REGION_NUMBER1, 
 MPU_REGION_FULL_ACCESS, 
 MPU_ACCESS_SHAREABLE, 
 MPU_ACCESS_NOT_CACHEABLE, 
 MPU_ACCESS_NOT_BUFFERABLE);

 I found that an unaligned access fault is triggered at the location shown in Figure 1. The address shown in Figure 2 is within the MPU configuration range shown in Figure 3, but I do not understand why the fault is triggered.

q1.png

Thank you very much!

Best answer by Pavel A.

Combination TEX=0, C=0 B=0 S=1 means "strongly ordered". It does not allow unaligned access.

 

1 reply

Pavel A.
Pavel A.Best answer
Super User
September 5, 2025

Combination TEX=0, C=0 B=0 S=1 means "strongly ordered". It does not allow unaligned access.

 

Lyu.1
Lyu.1Author
Senior
September 5, 2025

I re-read the cm7 manual and now understand, thank you so much for your guidance, the guidance was great!