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:
Step 0: Download J-Link Software Pack and install it.¶
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
Step 2: Start the J-Link GDB server¶
JLinkGDBServer -device Cortex-M4 -endian little -if SWD -speed 8000 -jlinkscriptfile /opt/SEGGER/JLink/Samples/JLink/Scripts/Unisoc_UWP566X.JLinkScript