Strang debugging observation
Hello All
I am new to this community and, for that matter, to the whole area of embedding programming. So please forgive if my question is trivial.
I have created a simple project for F303RE using CubeMx, turning the LED on/off using the blue button, and am working on it in TrueStudio. The project works as expected. Then, just to explore, I have defined a few int variables in the main function and have assigned them in the while(1) loop, These are int a, b, c; (in the main) and a = GPIOA; b = GPIOB, and c=2*a; (in the while(1) loop). But, when I step over in the debugging mode, the debugger ignores them all and jumps over to the next instruction (which is a pin read function for the button). I even have set breakpoints on these assignments, but the result is the same; the debugger arrow simply does not stop at any of these assignments! What is interesting however is that the assignments are done correctly since, when I hover the mouse over any of these variables, I see that the variables have assumed the expected values.
I wonder if anyone could help me understand what is wrong.
Thanks in advance
Amir
