Zedboard Jtag Driver

Posted on by admin
Zedboard Jtag Driver Average ratng: 9,6/10 144 reviews

Overview

Hi I'm having trouble getting the USB host to work on the ZEDBoard. Appareantly there is no power on the USB-Connector. Jumpers JP2 and JP3 are closed. CPEN from the Phy is low (which causes no power on the bus). ARM Processor Not Detecting in Hardware Manager Hello when i am trying to load the program through USB Jtag (micro USB Connector) i am seeing only ZC7020 but not the ARM Processor in the scan chain. I am using Zedboard. I tried all ways on Centos-7 OS and the particular script (installdrivers.tar.gz). I aimed to program the Zedboard for petalinux applications developing but no success with XUP USB-JTAG Rev.G and Vivado running on Centos-7. Could you please share any suggestions if you have? ARM JTAG Interface Specifications Version 16-Apr-2019 05-Aug-15 Changed the file name from armappjtag.pdf to apparmjtag.pdf. Introduction The debugger communicates with the target processor via JTAG interface. It is connected with a probe cable (debug cable”) to the JTAG connector on the target board.

Oct 14, 2013  USB-JTAG drivers with ISE14.6/Windows764bit/Zedboard I am working with the Zedboard, ISE 14.6 and Windows7 64 bit. So far I was able to get the UART-USB driver installed working to command LED's on/off but I cannot seem to get the USB-JTAG to work. The kit combines an 800 x 480 WVGA TFT-LCD display with an industrial projective capacitive touch sensor, I2C-based touch controller, LED backlight supply and all the necessary cables. The touch display connects to the ZedBoard, MicroZed, or Zynq Mini-ITX through a standard DisplayPort cable and adapter cards. Read about 'ZedBoard Xilinx SDK Program FPGA Failed (USB-JTAG)' on element14.com. I am trying to program a hello world design to the ZedBoard using the J17 USB-JTAG port.

  • ZedBoard specs (Rev D):

    • Xilinx Zynq-7000 AP SoC XC7Z020-CLG484-1
    • Programmable logic:
      • Derived from Xilinx Artix-7 FPGA
      • Includes configurable logic blocks (CLBs), port and width configurable block RAM (BRAM), DSP slices with a 25 x 18 multiplier, 48-bit accumulator and pre-adder (DSP48E1), a user configurable analog to digital convertor (XADC), clock management tiles (CMT), etc
    • Dual-core ARM Cortex A9
      • ARMv7-A architecture, r3p0 revision
      • 667 MHz max clock frequency (speed grade -1)
      • L1 cache: 32 KB instruction, 32 KB data per processor
      • L2 cache: 512 KB
      • 256KB on chip memory (OCM)
    • Memory:
      • 512 MB DDR3 SD RAM (32-bit address)
      • 256 Mb QSPI flash memory
      • Static memory controller
      • 4 GB SD card
    • Onboard USB-JTAG Programming
    • 10/100/1000 Ethernet
    • USB OTG 2.0 and USB-UART
    • PS & PL I/O expansion (FMC, Pmod™, XADC)
      • GPIO with four 32-bit banks, of which up to 54 bits can be used with the PS I/O and up to 64 bits connected to the PL
      • Up to 54 flexible multiplexed I/O (MIO) for peripheral pin assignments
    • Multiple displays (1080p HDMI, 8-bit VGA, 128 x 32 OLED)
    • I2S Audio CODEC
    • See http://www.digilentinc.com/zedboard
  • ZedBoard images
    (from http://zedboard.org/product/zedboard)

FrontBack
Functional OverlayBlock Diagram
  • Zynq-7000 AP SoC overview
    (from http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf)
  • Host OS:

    • Ubuntu Linux 14.04.3 LTS (GNU/Linux 3.16.0-50-generic x86_64)
      • See http://releases.ubuntu.com/14.04/
  • Xilinx applications: Dc comics torrents.

    • Vivado Design Suite (including SDK) 2015.2
      • See http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools/2015-2.html
    • PetaLinux 2015.2
      • See http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2015-2.html

Installation

  • Install Xilinx applications:
  • Install necessary packages from official Ubuntu repository:
  • Install cable drivers:
  • Change /bin/sh to bash
  • Install serial terminal console:
  • Setup TFTP server

    • Create a text file /etc/xinetd.d/tftp with the following content:
    • Create a directory /tftpboot
    • Restart the xinetd service
  • Setup DHCP server

    • Set a network connection profile with
    • Install DHCP server
    • Edit /etc/dhcp/dhcpd.conf and /etc/default/isc-dhcp-server according to https://help.ubuntu.com/lts/serverguide/dhcp.html
      • e.g.
    • Restart
  • Setup NFS server

    • Install NFS server
    • Edit /etc/exports according to https://help.ubuntu.com/community/SettingUpNFSHowTo#Install_NFS_Server
      • e.g.
    • Restart
    • Note that if you have firewall running, you have to keep the port 2049 open (or disable the firewall).

Startup

  • Get a license from http://www.xilinx.com/getlicense
    • Use the voucher to get a node-locked license (which will be emailed to you)
    • Alternatively, one can get the WebPACK license for free
    • In Vivado, select Help -> Manage License.., load the license Xilinx.lic
  • Setup the environments:

Useful info

  • References

    • ZedBoard Hardware User's Guide
      http://zedboard.org/sites/default/files/documentations/ZedBoard_HW_UG_v2_2.pdf
    • ZedBoard Master Constraints
      http://zedboard.org/sites/default/files/documentations/zedboard_master_XDC_RevC_D_v2.zip
    • Zynq-7000 Technical Reference Manual (UG585)
      http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf
    • Zynq-7000 All Programmable SoC Overview (DS190)
      http://www.xilinx.com/support/documentation/data_sheets/ds190-Zynq-7000-Overview.pdf
    • ARM Cortex-A9 Technical Reference Manual
      http://infocenter.arm.com/help/topic/com.arm.doc.ddi0388g/DDI0388G_cortex_a9_r3p0_trm.pdf
  • Zynq-7000 IP (ZYNQ7 Processing System) in Vivado 2015.2 with ZedBoard preset

  • Zynq-7000 memory map/address map
    (from http://www.xilinx.com/support/documentation/data_sheets/ds190-Zynq-7000-Overview.pdf)
    • Each unique 32-bit address holds one byte.
  • Zynq-7000 clocks

    • Generated by three programmable PLLs: ARM PLL, DDR PLL, I/O PLL
    • (Default) Input frequency: 33.333333 MHz, CPU clock ratio 6:2:1
      • CPU freq: 667 MHz, DDR freq: 533 MHz
  • Zynq-7000 APU

    • Dual-core ARM Cortex-A9 processor
      • ARMv7 architecture, runs 32-bit ARM instructions, 16-bit and 32-bit Thumb instructions, 8-bit Java byte codes, implements ARM NEON coprocessor technology, a single instruction multiple data (SIMD) architecture
    • Snoop control unit (SCU)
    • L2 cache controller
    • On-chip memory (OCM)
    • 8-channel DMA
    • System watchdog timer
    • Triple-timer controller (TTC)
  • Zynq-7000 PS-PL interface

    • 2x 32-bit AXI general-purpose (GP) master interfaces
    • 2x 32-bit AXI general-purpose (GP) slave interfaces
    • 4x 64-bit AXI high-performance (HP) slave interfaces
    • 1x 64-bit AXI Accelerator Coherency Port (ACP) slave interface
    • 4x PS clock outputs to PL
    • 4x PS reset outputs to PL
    • 16x interrupts
    • DMA, event signals, EMIO, ..
  • Zynq-7000 interrupts

    • 64 shared peripheral interrupts (PL interrupts + PS IOP interrupts) are supported, starting from ID 32
  • ZedBoard schematics
    http://zedboard.org/sites/default/files/documentations/ZedBoard_RevD.2_Schematic_130516.pdf

  • ZedBoard Out Of Box (OOB) SD card image and source can be downloaded from Digilent website: http://www.digilentinc.com/Data/Products/ZEDBOARD/ZedBoard_OOB_Design.zip

    • A backup copy of the OOB SD card can be found in the 'bootimage' directory
  • PetaLinux Tools

    • See http://www.xilinx.com/tools/petalinux-sdk.htm
    • Also see http://www.wiki.xilinx.com/PetaLinux
    • PetaLinux v2015.2.1 is based on Yocto 1.8, which is based on Linux 3.19
    • PetaLinux v2015.2.1 includes BusyBox 1.23.1 and Dropbear SSH server
    • The git trees for PetaLinux v2015.2.1 are (according to http://www.xilinx.com/support/answers/65276.html):
      • https://github.com/Xilinx/linux-xlnx (tag: xilinx-v2015.2.03)
      • https://github.com/Xilinx/u-boot-xlnx (tag: xilinx-v2015.2)
      • https://github.com/Xilinx/device-tree-xlnx.git (tag: xilinx-v2015.2.02)
    • The git trees for PetaLinux v2015.4 are (according to http://www.xilinx.com/support/answers/66107.html):
      • https://github.com/Xilinx/linux-xlnx (tag: xilinx-v2015.4)
      • https://github.com/Xilinx/u-boot-xlnx (tag: xilinx-v2015.4)
      • https://github.com/Xilinx/device-tree-xlnx.git (tag: xilinx-v2015.2.4)
    • Xilinx Wiki for Linux tools
  • PetaLinux Workflow

    • cd <PetaLinux_Project>
    • petalinux-create -t project -n software --template zynq
    • cd <Vivado_Export_to_SDK_Directory>
    • petalinux-config --get-hw-description -p <PetaLinux_Project>/software/
      • Make sure that 'primary sd' is selected in
        • Subsystem AUTO Hardware Settings > Advanced bootable images storage Settings > boot image settings > image storage media
        • Subsystem AUTO Hardware Settings > Advanced bootable images storage Settings > kernel image settings > image storage media
      • (Optional) petalinux-config -c rootfs
      • (Optional) petalinux-config -c kernel
    • petalinux-create -t apps -n myapp --template c --enable
    • petalinux-build
      • Make necessary changes to device tree settings found in subsystems/linux/configs/device-tree/
    • cd images/linux
    • petalinux-package --boot --fsbl zynq_fsbl.elf --fpga system_wrapper.bit --uboot
      • Copy BOOT.BIN and image.ub (roughly 11 MB) to the SD card.
        • The SD card has to be formatted as FAT32.
      • Boot the ZedBoard with the SD card (make sure the jumpers are set correctly).
  • PetaLinux netboot using TFTP

    • Use SD card for initial boot. Connect the ethernet cable.
    • When the message 'Hit any key to stop autoboot' shows, stop the autoboot.
    • If an IP address was not obtained, run dhcp.
    • Run set serverip 192.168.1.1 (TFTP server IP).
    • Run run netboot.
  • AXI reference guide

  • Acronyms

    ELECTRICAL SAFETY HAZARDS AWARENESS THIS GUIDE SHOULD BE USED BY INSTRUCTORS TO SUPPLEMENT THE NON-ELECTRICAL WORKER TRAINING MODULE PRESENTATIONS EFCOG ELECTRICAL SAFETY IMPROVEMENT PROJECT. Electrical Hazards Awareness Page 2 of 49 EFCOG Electrical Safety Improvement Project. Electrical safety training pdf. And clarification of basic electrical safety for individuals who have little or limited training or familiarity with the field of electricity. An understanding of these principles is essential for comprehension of OSHA's Electrical Safety Standards. Electrical Safety Basic Awareness Provides basic electrical hazard awareness information in accordance with OSHA 29 CFR 1910 Subpart S. 474 Kb: Electrical Safety Participant Guide This training curriculum is primarily designed for workers without any formal training on electricity, although electricians may also benefit from a review.

AcronymDefinition
ACP Accelerator Coherency Port
AP SoC All Programmable System on a Chip
APB Advanced Peripheral Bus
APU Application Processor Unit
ASIC Application-Specific Integrated Circuit
AXI Advanced eXtensible Interface
BSP Board Support Package
CLB Configurable Logic Block
DMA Direct Memory Access
DRM Direct Rendering Manager
DSP Digital Signal Processor
DTB Device Tree Binary
DTS Device Tree Source
EMIO Extended MIO
FIFO First In, First Out
FMC FPGA Mezzanine Card
FPGA Field-Programmable Gate Array
FSBL First-Stage Boot Loader
GDB GNU Project Debugger
GIC Generic Interrupt Controller
GNU GNU's Not Unix
GPIO General-Purpose I/O
HDL Hardware Description Language
HLS High-Level Synthesis
I2C Inter-Integrated Circuit
IDE Integrated Development Environment
IOP Input/Output Peripherals
IP Intellectual Property
IRQ Interrupt ReQuest
JTAG Joint Test Action Group
LUT Look-Up Tables
LVDS Low Voltage Differential Signal
MIO Multiplexed I/O
MMU Memory Management Unit
OCM On-Chip Memory
OS Operating System
PL Programmable Logic (a.k.a. fabric)
PLL Phase-Locked Loop
PS Processing System (a.k.a. processor)
QSPI Quad Serial Peripheral Interface
RTL Register Transfer Level
SCU Snoop Control Unit
SDK Software Development Kit
SIMD Single Instruction Multiple Data
SoC System on a Chip
TLA Three-Letter Acronym
TLB Translation Lookaside Buffer
TTC Triple-Timer Counter
UART Universal Asynchronous Receiver/Transmitter
UIO Userspace I/O

Tutorials

  1. ZedBoard Getting Started Guide
    http://zedboard.org/sites/default/files/documentations/GS-AES-Z7EV-7Z020-G-V7.pdf

  2. Avnet Zynq SpeedWay Workshops
    http://zedboard.org/support/trainings-and-videos

    • Developing Zynq-7000 All Programmable SoC Hardware
      http://zedboard.org/node/2563/
    • Developing Zynq-7000 All Programmable SoC Software
      http://zedboard.org/node/2540/
    • PetaLinux for the Zynq-7000 All Programmable SoC
      http://zedboard.org/course/petalinux-zynq%C2%AE-7000-all-programmable-soc
  3. Zynq Design From Scratch blog by Sven Andersson
    http://svenand.blogdrive.com/

  4. Vivado Design Suite Tutorial: Embedded Processor Hardware Design (UG940)
    http://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_2/ug940-vivado-tutorial-embedded-design.pdf

    • Remember to download the tutorial design files
  5. Xilinx University Program Workshops
    http://www.xilinx.com/support/university/workshops.html

    • Embedded System Design Flow on Zynq
      http://www.xilinx.com/support/university/vivado/vivado-workshops/Vivado-embedded-design-flow-zynq.html
    • Advanced Embedded System Design on Zynq
      http://www.xilinx.com/support/university/vivado/vivado-workshops/Vivado-adv-embedded-design-zynq.html
    • Embedded Linux on Zynq
      http://www.xilinx.com/support/university/vivado/vivado-workshops/Vivado-embedded-linux-zynq.html
  6. Zynq-7000 All Programmable SoC: Embedded Design Tutorial (UG1165)
    http://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_2/ug1165-zynq-embedded-design-tutorial.pdf

    • Remember to download the tutorial design files
  7. Zynq Base Targeted Reference Design (TRD) 2015.2
    http://www.xilinx.com/support/documentation/boards_and_kits/zc702_zvik/2015_2/ug925-zynq-zc702-base-trd.pdf
    http://www.wiki.xilinx.com/Zynq+Base+TRD+2015.2

    • ⚠️ For ZC702 Evaluation Board, not ZedBoard!
    • Remember to download the tutorial design files
  8. Reading materials

    1. The Zynq Book
      http://www.zynqbook.com/
    2. Xilinx UltraFast Embedded Design Methodology Guide (UG1046)
      http://www.xilinx.com/support/documentation/sw_manuals/ug1046-ultrafast-design-methodology-guide.pdf

Zedboard Usb Jtag Driver

Jtag

Known Issues (PetaLinux)

Zedboard Jtag Driver Windows 10

  • Release Notes and Known Issues for PetaLinux 2013.04 and later (AR# 55776)

  • Ethernet

    • Insert the following into subsystems/linux/configs/device-tree/system-top.dts
      • See http://www.xilinx.com/support/answers/61117.html
  • UIO

    • Replace compatible for each GPIO device in subsystems/linux/configs/device-tree/pl.dtsi
    • Replace bootargs in subsystems/linux/configs/device-tree/system-conf.dtsi
      • See https://github.com/Xilinx/linux-xlnx/commit/7ebd62dbc727ef343b07c01c852a15fc4d9cc9e5 for explanation.

Xilinx Jtag Driver

Miscellaneous (PetaLinux)

Zedboard Jtag Driver

  • Enable TCF agent

  • Enable SSH server

  • Mount via NFS

  • Change MAC address

  • Use static IP address

  • Run applications at startup

    • See AR# 55998
    • Create an application, and create a startup script in the application area
    • Modify the Makefile, remove any reference to APP_OBJS and *.o, update the install section to copy mystartup to /etc/init.d/ and create a symbolic link to /etc/rc5.d/
    • Remember to indent with a tab character, otherwise the Makefile won't work
  • Auto login

    • Add a new file build/linux/rootfs/targetroot/bin/autologin with the following content:
    • Make autologin executable
    • Modify build/linux/rootfs/targetroot/etc/inittab, change the very last line to
    • Repackage the image
  • Use an external Linux kernel

  • Update device tree generator

You must install the Altera® USB-BlasterTM or Altera USB-Blaster IIdownload cable driver before you can use it to program devices with Quartus® Prime software.

The first time the USB-Blaster download cable is plugged in, the Windows Found New Hardware dialog box prompts you to install the driver. (Note: Do not use the Add HardwareWizard from the Control Panel.)

The USB-Blaster II device drivers require manual installation so that the cable will be properly recognized. Refer to the instructions below.

The Altera On-Board USB-Blaster II cable appears as Altera USB-Blaster (unconfigured) when first attached to your system. After it has been configured by the Quartus Prime software, it will appear as Altera USB-Blaster II (JTAG interface) and then Altera USB-Blaster II (SystemConsole interface). You might need to install drivers for each of these interfaces; follow the steps below to install the drivers.

You must have system administration (Administrator) privileges to install the USB-Blaster and USB-Blaster II download cable driver.

Driver Installation for Altera USB-Blaster

  1. Plug the USB-Blaster download cable into your PC. The Found New Hardware dialog box appears.
  2. Select Locate and install driver software (recommended).
  3. Select Don't search online.
  4. When you are prompted to Insert the disc that came with your USB-Blaster, select I don’t have the disc. Show me other options.
  5. Select Browse my computer for driver software (advanced) when you see the Windows couldn’t find driver software for your device dialog box.
  6. Click Browse, and browse to the<Path to Quartus Prime installation>driversusb-blaster directory.
    • Note: Do not select the x32 or x64 directories.
  7. Click OK.
  8. Select the Include subfolders option, and click Next.
  9. If you are prompted Windows can’t verify the publisher of this driver software, select Install this driver software anyway in the Window Security dialog box. The installation wizard guides you through the installation process.
  10. When The software for this device has been successfully installed dialog box appears, click Close.
  11. To complete your installation, set up programming hardware in the Quartus Prime software.

Driver Installation for Altera USB-Blaster II

  1. Plug the USB-Blaster II cable into your PC.
  2. Open the Device Manager, and right-click on the Unknown device under the Other devices branch.
  3. Select Update Driver Software.
  4. Select Browse my computer for driver software.
  5. Enter the location of the Quartus Prime software USB-Blaster II driver files directory (<Path to Quartus Prime installation>driversusb-blaster-ii) in the Search for driver software in this location field.
  6. Click Next.
  7. Click Install in the Would you like to install this device software? Windows security dialog box.
  8. Close the Update Driver Software - Altera USB-Blaster II (Unconfigured) successful installation notification. The Device Manager now shows a new branch called JTAG cables with an Altera USB-Blaster II (Unconfigured) node.
  9. Open the Quartus Prime Programmer. Within a few seconds, the JTAG cables branch displays two nodes: Altera USB-Blaster II (JTAG interface) and Altera-USB Blaster II (System Console interface).