cancel
Showing results for 
Search instead for 
Did you mean: 

Busfault when reading device unique id on stm32h7b3

aco990
Associate III

Hello everyone,

i am trying to read the device unique id of my stm32h7b3 mcu, but get a bus fault on line 2:

 

 

  uint8_t* uid_base = (uint8_t*) 0x08FFF800;
  uint8_t i =  uid_base[0];

 

 

aco990_0-1719915957217.png

Do you know what could be the problem ?

4 REPLIES 4
aco990
Associate III

If i change the pointer to uint16_t* i can read without hardfault. But The reference manual says bytewise reading is possible. What do i wrong? On the stm32h743 i can read it bytewise.

@STOne-32 , @Peter BENSCH 
Best regards

Hello @aco990 ,

I reproduced the behavior on stm32h7b3 and not on STM32H743.

Question: did you enable the data cache? in that case are you facing the same behavior?

 

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.

The issue is only on the stm32h7b3. The stm32h743 is working fine 

No the data cache is not enabled on both mcu

Hello,

My comment was to test with Dcache enabled. Do you have the same behavior or not?

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.