This application note describes the built-in debug features for the XGATE coprocessor in Freescale S12X(E) microcontrollers, including manual thread control…
The document provides an overview of the debugging capabilities integrated into the XGATE peripheral coprocessor for S12X(E) controllers. It explains how to use hardware debug features directly or understand their interaction with high-level environments.
Key topics include the RISC core architecture, stages of operation (configuration, application, and debug), memory mapping, status registers, and specific debug functions such as manually starting/terminating threads, single stepping, and manipulating core registers.
| General-purpose registers count | seven |
|---|---|
| Interrupt nesting (S12X) | cannot be nested |
| Interrupt nesting (S12XE) | one level |
You can manually enter debug mode by setting the XGDBG bit through a write access to the XGMCTL register.
To terminate a thread, write 0x00 to the channel ID register (XGCHID).
Write a 1 to the XGSS bit if a thread is active.