Closed acwiek closed 2 years ago
Hi, I found an error in StmUtli.c, DEVICE_TYPE, and DEVICE_REV are defined incorrectly.
As DBGMCU struct is a pointer to memory address
DBGMCU
#define DBGMCU_BASE ((uint32_t)0xE0042000U) ... #define DBGMCU ((DBGMCU_TypeDef *) DBGMCU_BASE)
We shouldn't dereference it when its member is accessed through the -> operator.
->
Hi, I found an error in StmUtli.c, DEVICE_TYPE, and DEVICE_REV are defined incorrectly.
As
DBGMCU
struct is a pointer to memory addressWe shouldn't dereference it when its member is accessed through the
->
operator.