ST M8 SWIM communication protocol, M8 DM debug module User manual
Below you will find brief information for STM8 SWIM, STM8 DM. This manual describes the debug architecture of the STM8 core, which is made up of two modules: the Debug module and the Single Wire Interface Module. The STM8 Debug system provides non-intrusive read/write access to RAM and peripherals during program execution.
Advertisement
Advertisement
Advertisement
Key features
Non-intrusive access
Read/write access to peripherals
Halt and step mode
Breakpoint capabilities
Watchdog control
Frequently asked questions
The STM8 Debug system is a single-wire interface based on asynchronous, high-sink open-drain, bidirectional communication that allows a debugging or programming tool to be connected to the MCU. It allows non-intrusive read/write access to RAM and peripherals during program execution.
The SWIM has three modes: OFF, I/O, and ACTIVE. The OFF mode is the default mode after power-on reset where the SWIM pin is not used as an I/O. The I/O mode is entered by setting the SWIM disable bit in the core configuration register, allowing the SWIM pin to be used as a standard I/O pin. The ACTIVE mode is entered by detecting a specific sequence on the SWIM pin while in OFF mode, enabling the SWIM pin to be used for communication with a debug tool.
The Debug Module (DM) allows the developer to perform certain debugging tasks without using an emulator. The DM can interrupt the MCU to break infinite loops or output the core context at a given point. It also supports two conditional breakpoints, software breakpoint control, step mode, external stall capability on WOTF command, watchdog and peripherals control, DM version identification capability, and interrupt vector table selection.