Skip to main content
M_Deloizy
Associate II
October 15, 2024
Solved

Unable to access Calibration Words with STM32H503RBT

  • October 15, 2024
  • 2 replies
  • 837 views

I try to read VREFINT_CAL word :

 

 

uint16_t *VREFINT_CAL=(uint16_t *)(0x08FFF810);
uint16_t v = *VREFINT_CAL;

 

 

When running, Hard fault interrupt is called.

Memory protect seems not active (MPU not used, GTZC not enabled).

What can be the problem ?

Thanks.

    Best answer by mƎALLEm

    Hello,

    This behavior is observed when the ICACHE is enabled and when RO and OTP regions are accessed. So you need to use the MPU.

    Please refer to this article: https://community.st.com/t5/stm32-mcus/how-to-avoid-a-hardfault-when-icache-is-enabled-on-the-stm32h5/ta-p/630085

     

     

    2 replies

    mƎALLEm
    mƎALLEmBest answer
    Technical Moderator
    October 15, 2024

    Hello,

    This behavior is observed when the ICACHE is enabled and when RO and OTP regions are accessed. So you need to use the MPU.

    Please refer to this article: https://community.st.com/t5/stm32-mcus/how-to-avoid-a-hardfault-when-icache-is-enabled-on-the-stm32h5/ta-p/630085

     

     

    "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."
    M_Deloizy
    M_DeloizyAuthor
    Associate II
    October 15, 2024

    Thanks very much. It's now Ok !