UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 66710

2015.4 PetaLinux: Example of GDB debugging on Zynq UltraScale+ MPSoC

Description

This article contains a very simple example of using GNU debugger (GDB) on Zynq UltraScale+ MPSoC.

Solution

Adding GDB to the ROOTFS:


On target:

mount /dev/mmcblk0p1 /mnt/
ifconfig eth0 192.168.150.11
ping 192.168.150.243  
gdbserver 192.168.150.243:2345 /mnt/linux_app.elf
 

On host:

aarch64-linux-gnu-gdb linux_app.elf
(gdb) target remote 192.168.150.11:2345
(gdb) break main
(gdb) continue
(gdb) continue
AR# 66710
Date Created 02/24/2016
Last Updated 03/22/2016
Status Active
Type General Article
Devices
  • Zynq UltraScale+ MPSoC
Tools
  • Vivado Design Suite - 2015.4