C code executing out of order
I noticed this on a more complicated project so I went back to blinky. I ran the debugger and it halts at the start of main. When I step in it first executes the GPIO_Init() whihc is the third instruction down, then steps back up to the system clock init (1st call in main), and then steps to a HAL_??? call. Is there a switch causing some sort of optimization that would cause this?
-Greg