cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 ADC Calibration values not accessible, resulting in HardFault

Nick van IJzendoorn
Associate III

Hi All,

Today I received two NUCLEO-H503RB boards, but when trying to get the ADC calibration values the processor HardFaults. According to the datasheet it's the correct address:

NickvanIJzendoorn_0-1702042824375.png

 

NickvanIJzendoorn_0-1702041649757.png

Also when trying to access it with the debugger it fails

NickvanIJzendoorn_1-1702041733296.png

Also the temperature sensor calibration seems defective.

NickvanIJzendoorn_2-1702041821601.png

Something I'm doing wrong or are Nucleo's not calibrated or something?

11 REPLIES 11
CMYL
ST Employee

Hello @Torin 

By debugging your code I found that you fall into a bus fault. 

CMYL_0-1714073451935.png

According to RM0499 section 7.3.9 (OTP and RO memory access) this is expected: 

If the OTP address you accessing is virgin, it is expected that the embedded flash memory detects ECC errors and NMI is raised. Because if you read addresses already programmed such as TRIM values of TSCAL1/2 or VREFINT (example 0x08FF_F814 of TSCAL1) there is no issues seen.

In my understanding the NMI is escalated to a bus-fault. I'm checking internally how is it possible to read virgin OTP values without any issues.

Best regards,

Younes

 

 

Hello @CMYL 
I'm using a STM32H562VG and I'm having the same issue.
Do you have any news about this point?
Also, when I try to read a non-virgin OTP block, I'm still having a bus hard-fault.

 

Regards,

Gianluca.