Debug Interface

DBG - Debug Interface

Quick Facts

EFM32 Debug Interface

What?

The Debug Interface is available in Energy Mode 0 to Energy Mode 3 and is used to program and debug EFM32 microcontrollers.

Why?

The Debug Interface makes it easy to reprogram and update the system in field, and allows debugging with minimal I/O pin use.

How?

The Cortex-M3 CPU supports advanced debugging features. EFM32 devices only use two port pins for debugging or programming. The systems internal and external state can be examined with debug extensions supporting instruction or data access break- and watch points.

Features

The EFM32 microcontroller family includes hardware debug support through a 2-pin serial-wire debug interface.

  • Flash Patch and Breakpoint (FPB) unit
    • Implement breakpoints and code patches
  • Data Watchpoint and Trace (DWT) unit
    • Implement watchpoints, trigger resources, and system profiling
  • Instrumentation Trace Macrocell (ITM)
    • Application-driven trace source that supports printf style debugging

Debug Pins

The two debug pins are

  • SWCLK Serial Wire Clock input. This pin has a built-in pull down.
  • SWDIO Serial Wire data Input/Output. This pin has a built in pull-up.