Posts

Showing posts from April, 2024

Debug embedded application over GDB Server by VS Code

Image
  You can debug target Linux process in VS Code over remote gdbserver. Open image-20231107-141631.png This page is done base on chatGPT + manual tweak to make it work. Debugging an embedded application over GDB Server in Visual Studio Code (VS Code) involves setting up the necessary configurations and using the GDB extension for VS Code. Here's an example of how to debug an embedded application using VS Code and GDB Server (my setup is windows vs code -> wsl2 ubuntu 22.04 -> SAM9X60 Curiosity at 10.0.0.4 Prerequisites: An embedded target device connected to your development machine. (Our SAM9X60 Curiosity is connected by Ethernet 10.0.0.4) Follow vendor procedure to flash the image to target and make sure GDB Server installed and running on your target machine. Include GDB server by update /poky-distro/build/conf/local.conf ” EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-profile tools-debug" ” Or you can use a prebuild if you do not want to rebuild yocto image VS Co