Run and Debug Embedded Linux Application using GDBServer and GDB

Опубликовано: 10 Октябрь 2024
на канале: EmbeddedCraft
4,769
78

In this video, we are showing how to run and debug embedded linux applications running on Beaglebone black board using GDBServer and GDB.
Topics covered in this video tutorial ...
Install Eclipse IDE for C/C++, Cross GCC compiler and Debugger
Building application for Beaglebone Black Board (BBB) running Debian Embedded Linux
Running Applicaiton on BBB
Debugging Application running on BBB (two methods)
Using “C/++ Remote Application“
Using “GDB Hardware Debugging “


Links used

Eclipse Download Link
https://www.eclipse.org/downloads/

Commands used in tutorial

Installing GCC Cross Compiler
$ sudo apt-get install gcc-arm-linux-gnueabihf
$ sudo apt-get install g++-arm-linux-gnueabihf

Verifing Installation
$ arm-linux-gnueabihf-gcc --version

Installing Gdb multiarch
$ sudo apt-get install gdb-multiarch

Verifing Installation
$ gdb-multiarch –version

compiler prefix
arm-linux-gnueabifh-

Login credential for Beaglebone black
User name: debian
Password: temppwd


Other Important videos

Building Linux Kernel for QEMU for ARM Board
   • Building Linux Kernel for QEMU for AR...  

Building Linux Kernel, Kernel Modules and Device Tree for Beaglebone Black Board
   • Building Linux Kernel, Kernel Modules...  

Eclipse and GCC Compiler - Configuring Eclipse to use GCC Compiler for QEMU
   • Eclipse and GCC Compiler - Configurin...  


Beaglebone Black Board: Serial Port Interfacing, Connecting Beaglebone Black board with Serial Port
   • Beaglebone Black Board: Serial Port I...  


Embedded Linux - Building Tool chain with Crosstool-NG
   • Embedded Linux - Building Tool chain ...  

Preparing bootable Micro SD card using command line on Linux Host
   • Preparing bootable Micro SD card usin...  


Raspberry PI remote desktop access | Using VNC Viewer on Linux Host to access Raspbian OS Desktop
   • Raspberry PI remote desktop access | ...  


Using QEMU to Emulate Cortex M based board and Running LED Blinking Program
   • Using QEMU to Emulate Cortex M based ...  



Follow us ...
Facebook:   / embeddedcraft  
Twitter:   / embeddedcraft  
Linkedin :   / embeddedcraft-craft-99a47617  

More videos on Embedded System and related topics can be found at:
http://embeddedcraft.org/