Skip to main content
Visitor II
May 11, 2020
Question

Why am I getting a hard fault when I try to read from VREFINT_CAL_ADDR on STM32H747XI?

  • May 11, 2020
  • 1 reply
  • 798 views

According to the datasheet, the VREFINT_CAL_ADDR is 0x1FF1E860-1FF1E861.

The STM low level file stm32h7xx_ll_adc.h has:

#define VREFINT_CAL_ADDR          ((uint16_t*) (0x1FF1E860UL)) /* Internal voltage reference, address of parameter VREFINT_CAL: VrefInt ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.3 V (tolerance: +-10 mV). */

If I try to execute:

uint16_t temp = *VREFINT_CAL_ADDR;

A hard fault occurs. Why?

    This topic has been closed for replies.

    1 reply

    Visitor II
    July 8, 2021

    Hi,

    I just had the same problem. Did you solve this problem? Looking at the memory map that area of memory is only accessible from the M7. I'm using the M4, so I wonder if that's my problem.

    When I use the M7 it works fine.

    cheers

    Chris