Skip to content

Bare metal on Digilent Zybo Z7-10 using standard Linux open source utilities

Notifications You must be signed in to change notification settings

3ap/zybo-z7-baremetal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digilent Zybo Z7-10 (bare metal)

This repository is aimed to simplify the interaction with Digilent Zybo Z7-10 by using standard Linux open source utilities (such as gcc, gdb, openocd) instead of proprietary Xilinx SDK. It is something like libopencm3 but for Xilinx Zynq 7010.

Quick Start

  1. Check if you have these apps installed:

    • openocd
    • arm-none-eabi-gdb
    • arm-none-eabi-gcc
    • arm-none-eabi-newlib
  2. Check whether the jumper JP5 set in JTAG mode on board;

  3. Connect your Zybo Z7 via USB (PROG/UART) to PC and turn the switch "ON/OFF" on;

  4. Open terminal and check for /dev/ttyUSB0 and /dev/ttyUSB1:

$ ls -al /dev/ttyUSB*
crw-rw---- 1 root uucp 188, 0 Oct 10 15:50 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Oct 10 15:50 /dev/ttyUSB1
  1. Add your user to the group that owns ttyUSB1 (usually dialout or uucp) for getting access to UART without root permissions:
sudo usermod -aG uucp "${LOGNAME}"
newgrp uucp
  1. Create file /etc/udev/rules.d/49-digilent.rules (change the group from p.5) for getting access to JTAG without root permissions:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", GROUP="uucp", MODE:="0660"
  1. Turn off and on board;

  2. Now you can run blink example for testing purpose:

cd examples/blink
make
make openocd &
make run

Credits

About

Bare metal on Digilent Zybo Z7-10 using standard Linux open source utilities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published