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?
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: