Debugging devices running Pelion Device Management Client
Device Management Client comes with its own debug tracing,
mbed-trace. You can activate the trace from the example application by defining it as a build time configuration.
To enable tracing in Mbed OS, change
To enable tracing in Linux, change the application's
define.txt as follows:
Clean and recompile the application after the changes. In case of a PC build, re-generate the makefiles using
Serial communication settings for your terminal:
- Baud rate: 115200.
- All other settings: match the standard defaults: 8 bits, 1 stop bit, no parity (115200-8-N-1).
Tip: If you are using Mbed OS, familiarize yourself with the generic Mbed OS debugging documentation, or the tutorial on serial communication. If you are using Linux, GDB is a good tool for debugging call stacks and other backtrace call flows.