use the address of Register or variable like below . This always works!see you, if you put for example: GPIOB->ODR, sometimes is ok, but mostly it doesn't work.place its address instead of its name (MACRO) . so work it always.I use CubeIDE V1.16.0.G...