3
\$\begingroup\$

I have a PSoC with debugging functionality ( I am sure other MCUs have similar functionality) which allows you to place the system in debug mode and you are then able to step through program execution, view register values, etc.. When in this configuration does the entire system halt and wait for you to "step through" the code? or are there more processes running in the background?

\$\endgroup\$
2
\$\begingroup\$

It depends on the MCU. Some (like TI's C2000 line) have a debug mode that allows the CPU to take interrupts while stepping through non-interrupt code. Timing and communication peripherals may have an option to continue working while the CPU is halted. But unless the documentation says otherwise or you've done some special configuration, you should assume that all peripheral activity will halt along with the CPU.

\$\endgroup\$
  • 2
    \$\begingroup\$ it also depends on the debugger (software) as well, as to what features of the cpu/mcu are used and how. The overall answer here is "it depends"... \$\endgroup\$ – old_timer Dec 28 '14 at 18:38
  • 3
    \$\begingroup\$ While in debug halt STM32 chips core is completely halted (no ISR are processed in background), but by default all peripherals (DMA, timers etc.) keep running. \$\endgroup\$ – kwesolowski Dec 28 '14 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.