STMicroelectronics/cmsis_device_h5

ADC_Common_TypeDef structs do not match reference manuals

tcbennun opened this issue · 2 comments

This applies to all four chips, but taking H503 as an example:

Definition in header defines CSR, CCR and CDR registers:

typedef struct
{
  __IO uint32_t CSR;          /*!< ADC common status register,            Address offset: 0x300 + 0x00 */
  uint32_t      RESERVED1;    /*!< Reserved,                              Address offset: 0x300 + 0x04 */
  __IO uint32_t CCR;          /*!< ADC common configuration register,     Address offset: 0x300 + 0x08 */
  __IO uint32_t CDR;          /*!< ADC common group regular data register Address offset: 0x300 + 0x0C */
} ADC_Common_TypeDef;

RM0492 meanwhile defines CCR, HWCFGR0, VERR, IPDR and SIDR registers (and no CSR or CDR chips other than H503 have these, my mistake):

image

ST Internal Reference: 174587

fixed in 9a778e0