Why am I getting a hard fault when I try to read from VREFINT_CAL_ADDR on STM32H747XI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-05-11 1:42 PM
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?
- Labels:
-
ADC
-
STM32Cube MCU Packages
-
STM32H7 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-07-08 5:56 AM
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
