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?
Electronic – When a microcontroller is in debug mode, does it freeze the entire MCU
debuggingmicrocontroller
Related Topic
- Electronic – Power cycle error when trying to program/debug HCS08 MCU
- Electronic – Altera Cyclone IV FPGA and jtag debugging
- Electronic – STM32 Sleep Mode: Interrupt gets executed but the CPU stays in WFI
- Electronic – OpenOCD child process termination: Wrong device detected
- Electronic – Am I using ARM 7 LPC21xx ADC register correctly
- Electronic – STM32F7 device freeze: cannot access registers
- Electronic – STM32F407 Clock Configuration Order
Best Answer
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.