Hello,
I am trying to toggle the Port C Pin 0 using the debugger (No eval board attached) for the device STM32F407 with the following code:
#include "stm32f4xx_hal.h" void delay() { for(int i = 0; i < 100000; i++); } int main (void) { while(1) { GPIOC->MODER = 0x01; GPIOC->BSRR ^= 1; delay(); } }
When stepping thorough the code, the GPIO in peripherals Window does not show any change to the values of MODER and BSSR. Its always 0 and does not work for other ports also. What is wrong?
Thanks for the reply. Could you show me an example or otherwise suggest some online resource where one can get the basics.
Which "basics" are you talking about?
The stuff you've talked about so far is all ST stuff - so ST's website would be the obvious place to go for support on that stuff!
The Datasheet and User Manual for the chip in question are required reading.
ST also have a youtube channel, and lots of training materials online.
They also do quite a lot of real-world training classes