cancel
Showing results for 
Search instead for 
Did you mean: 

Comparators vs DWT

Albi G.
Senior

Hi guys,

i just wanted to mention that there is a ****** in the header files.

I am using an STM32G474:

Just an example - stm32g474xx.h defines

#define COMP3              ((COMP_TypeDef *) COMP3_BASE)

And core_cm4.h uses

 __IOM uint32_t COMP3;                 /*!< Offset: 0x050 (R/W) Comparator Register 3 */

as part of DWT_Type.

Same applies to COMP2 and so on.

Good luck fixing this. Basically you have to rename the comparators.

1 REPLY 1
Amel NASRI
ST Employee

Hi @Albi G.​ ,

Thanks for raising this issue. It is reported internally.

-Amel

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.