Being able to quickly and efficiently debug an application when met with an issue is a useful skill for any developer. In this lesson, we will cover some debugging techniques that can be useful when developing applications with the nRF Connect SDK. First, we will go over more debugging functionality available in nRF Connect for VS Code and go through build errors and fatal errors, and how to debug them using tools like core dump and addr2line. Then we will cover how to troubleshoot the devicetree, and touch upon some physical debugging techniques.
In the exercise portion of this lesson, you will practice using advanced debugging features in nRF Connect for VS Code, and write and read directly to the SoC/SiP peripherals. Then, you will create an application that triggers a fault error, and practice using core dump and addr2line to debug.