I'm writing the following code: GPIOA-"MODER" 0x400; (set GPIO_MODER_MODE5_0). It's not working! In the debugging window, bit 11 doesn't change and the LD4 LED doesn't switch.
I have Nucleo-G071RB. I want to flash the LED LD4 using CMSIS. Use IAR 8.40
I'm writing the following code: GPIOA->MODER |= 0x400; (set GPIO_MODER_MODE5_0). It's not working! In the debugging window, bit 11 doesn't change and the LD4 LED doesn't switch!
However, if I write a GPIOA->MODER = 0x400; then it works. (the debugger doesn't work because it's on GPIOA the same way, but it doesn't matter).
The same thing is happening at other ports B, C, ...
What's my mistake?
Thank you.
