Skip to content

How to Debug

At present, debugging with the J-Link and GDB is the only choice. To set the debugging environment, please follow the procedure below:

sudo dpkg -i Downloads/JLink_Linux_V630b_x86_64.deb

Step 1: Download Unisoc_UWP566X.JLinkScript and put it to /opt/SEGGER/JLink/Samples/JLink/Scripts.

cp Unisoc_UWP566X.JLinkScript /opt/SEGGER/JLink/Samples/JLink/Scripts
JLinkGDBServer -device Cortex-M4 -endian little -if SWD -speed 8000 -jlinkscriptfile /opt/SEGGER/JLink/Samples/JLink/Scripts/Unisoc_UWP566X.JLinkScript

Step 3: Start the debug session using GDB client