Debug
Last updated
Was this helpful?
Last updated
Was this helpful?
For the XDK are special debugger called J-Link available from the company SEGGER. Depending on the functionality, multiple different J-Links are available.
One of them is the recommend for debugging purpose with the XDK. It offers the basic functionality which is needed and is in comparison with the other available J-Links quite inexpensive.
For debugging a different connection configuration need to be done as usual. Usually the XDK is not connected directly via USB to the notebook or pc. In case of the debugging purpose, the J-link debugger takes the part of being directly connected via USB. The XDK is then connected via the 10 pin interface, which is on the long side of the XDK case, via a connection cable with the the J-Link debugger.
If both devices are connected properly, the XDK is visible in the devices view of the XDK-Workbench and the debug button is usable.
First we need to set some breakpoints. A breakpoint itself is a point in the application, where the application itself will be stopped during the debug process.
Now breakpoints are set and the first application can be debugged.
For that, you only need to select the application you want to debug and click debug, instead of flash. Then a window including configuration parameter for the debug session as follows should open.
* For a normal debug session, the parameter can be left to their default states and only ok need to be pressed.