STMicroelectronics / stm32h7rsxx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32H7RS series.
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Problematic macro definition in stm32h7rsxx_ll_adc.h #2

Open xu-yingjing opened 3 months ago

xu-yingjing commented 3 months ago

Hello,

There seems to be some problem with the macro definitions VREFINT_CAL_ADDR, TEMPSENSOR_CAL1_ADDR and TEMPSENSOR_CAL2_ADDR in the stm32h7rsxx_ll_adc.h file

#define VREFINT_CAL_ADDR                   ((uint16_t*) (0x1FF1E810UL))
#define TEMPSENSOR_CAL1_ADDR               ((uint16_t*) (0x1FF1E814UL))
#define TEMPSENSOR_CAL2_ADDR               ((uint16_t*) (0x1FF1E818UL)) 

According to the description in the datasheet, it should be defined as follows

#define VREFINT_CAL_ADDR                   ((uint16_t*) (0x08FFF810UL))
#define TEMPSENSOR_CAL1_ADDR               ((uint16_t*) (0x08FFF814UL))
#define TEMPSENSOR_CAL2_ADDR               ((uint16_t*) (0x08FFF818UL)) 
RJMSTM commented 3 months ago

ST Internal Reference: 182742