Contents
Introduction
Test environment
SD Card
Cables
Router
ZCU102 hardware configuration
Laptop configuration
Hardware
Software
Connect Cables
Insert SD Card In Card Reader
Locate COM port
Prepare SD Card Image
Launch Application
Setup Remote Systems Explorer in XSDK
Setup Debug Configuration
References

Introduction

The default XSDK debug configuration for Linux applications copies the elf file to the target before running it. It is desirable to be able to debug an application that was launched outside XSDK (e.g. at system startup). This is not shown in the default debug templates but can be done manually, as shown here. A working knowledge of XSDK is assumed, as well as familiarity with the ZCU102 board.

Test environment

You may be able to use a different test setup, so long as the following principles are preserved:

SD Card

Use an SD card that was supplied with, or is compatible with, the ZCU102.

Cables

  1. USB-to-miniUSB cable supplied with the ZCU102
  2. Two Ethernet cables (RJ45)
  3. Power cable for ZCU102

Router

It establishes a private Ethernet network containing the laptop and the ZCU102. Ensure the router is enabled as a DHCP server and powered on, with two spare RJ45 ports. This test uses up three IP addresses – one for the laptop, one for u-boot and one for Linux on the ZCU102. Ensure the router can serve these three clients. Reboot it if necessary.

ZCU102 hardware configuration

  1. Rev 1.1 board
  2. Boot mode is SD card

Laptop configuration

Hardware

  1. SD card reader
  2. Spare USB port
  3. Spare Ethernet port configured for DHCP slave

Software

  1. Windows 7
  2. XSDK 2018.2
  3. ZCU102 2018.2 release image
  4. CP210x USB to UART Bridge VCP Drivers

Connect Cables

  1. USB-UART cable between ZCU102 and laptop
  2. Ethernet cable between ZCU102 and router
  3. Ethernet cable between laptop and router
  4. ZCU102 power cable (leave powered down)

Insert SD Card In Card Reader

Ensure the SD card is writeable.

Locate COM port

Prepare SD Card Image

#include <stdio.h>
#include <unistd.h>

int main()
{
    for(;;) {
        sleep(10);
        printf("Hello World\n");
    }
    return 0;
}

Launch Application


Setup Remote Systems Explorer in XSDK










Setup Debug Configuration











References

  1. Zynq UltraScale+ MPSoC ZCU102 Evaluation Kit
  2. Zynq 2018.2 Release Images
  3. Software Development Kit Standalone WebInstall Client - 2018.2 Lightweight Installer
  4. CP210x USB to UART Bridge VCP Drivers