When i run the debug mode hte Call stack + locals doesn't display the "main" file and the debug arrows(green and yellow) are in the "startup_stm32f407xx.s" file and they should be in "main.cpp".
What could be the problem?
https://www.keil.com/support/man/docs/uv4/uv4_dg_debug.htm
Run to main()Executes the instructions until main() is reached and stops execution. When disabled, the application stops at the first instruction. Commands defined in Initialization File are executed regardless of this option.
Run to main() was always enabled.
But i noticed something in the Build Output window:
Note: source file '.\main.cpp' - object file renamed from '.\Objects\main.o' to '.\Objects\main_1.o'.
Does this have to do anything with it?
It might be an indication that you somehow managed to put two sources named "main" into your project. Which is rather unlikely to be what you wanted.
I've noticed that this happens when my main file is of type .cpp, and these are my files in my project, i only see one source file "main.cpp":
and this is where it gets stuck: