Callstack Window doesn't show current call stack content or displayed info is incorrect.
Compiler can optimize the code to an extent that the required information being used by the debugger to extract the Call Stack context is not available or just not sufficient. Check the compiler manual for any relevant compiler switches and try to decrease compiler optimization level(s) - at least for test to confirm that this is the root cause for Call Stack not being displayed properly.
Call Stack can be generated using information from different sources: ELF file, CPU EABI, or by code simulation.
Automated is the default option and winIDEA will automatically determine the best method.
1. Open Debug / Configure Session / Applications / Symbol Files.
2. Select the download file and press Edit.
3. Click Advanced to open the Edit Options dialog.
4. From the drop-down Call Stack Generation field select:
Check the topic How to get maximum Call Stack information?