I must have changed some settings and don't know what. I can only step through the assembly code during a debug session. Nothing moves in the C/C++ editor window. I have already looked into this, but it doesn't resolve the problem.
Probably the disassembly. But clicking on the C-Code window, doesn't change it. How to you change the focus? I never really used the assembly window, so I don't know why this happens
Change focus with the mouse -- left-click in the target window.
The focus just changes the granularity (instructions or statements). As you step through execution, the IDE should keep the disassembly and source views linked and open source files as needed (if available) to show the C/C++ statements that correspond to the disassembly.
But, if the code doesn't correspond to a source file (e.g., if stepping through a library that you don't have source for, or stepping through random locations in memory), then the disassembly and source windows won't be linked.
Where do you start when you start a debug session? Where are you in the code when stepping and only moving in disassembly (and do the instructions you see make sense)? Where does a stop/reset sequence take you?
This wasn't the issue. I found the solution in another thread. I had to disable "Download to flash" in Target Options --> Debug