While debugging in winIDEA, some functions (or source lines) cannot be stepped over. The dialog Step Operation in Progress appears. If the SoC is running, the same function executes normally.
One of the possible root causes for such behavior is that the function that is being stepped over uses interrupts from peripherals that act differently when the SoC is single-stepped and when the SoC is running.
Such peripherals may be, for example, timers.
There are several potential solutions that are listed below. The most suitable one will depend on the root cause and/or SoC architecture.
Instead of stepping over problematic functions (or source lines), set an execution breakpoint to the target source line and run the SoC.
1. Navigate to Hardware > SoC Options...> Reset.
2. Uncheck Suspend peripherals while stopped.
If you know exactly which device is causing the issues, you may be able to unsuspend only the problematic device by clicking on the โ...โ button. Whether the devicesโ suspending is configurable depends on the CPU architecture.
1. Navigate to Debug > Debug Options > Debugging.
2. Uncheck the checkboxes in the section Prevent context switch during on the problematic operations. Most commonly, that would be: