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.
-
Check if you have these apps installed:
openocdarm-none-eabi-gdbarm-none-eabi-gccarm-none-eabi-newlib
-
Check whether the jumper JP5 set in JTAG mode on board;
-
Connect your Zybo Z7 via USB (PROG/UART) to PC and turn the switch "ON/OFF" on;
-
Open terminal and check for
/dev/ttyUSB0and/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- Add your user to the group that owns ttyUSB1 (usually
dialoutoruucp) for getting access to UART without root permissions:
sudo usermod -aG uucp "${LOGNAME}"
newgrp uucp- 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"
-
Turn off and on board;
-
Now you can run blink example for testing purpose:
cd examples/blink
make
make openocd &
make runbsp/boot.S&bsp/Zynq.ldfrom bigbrett/zybo-baremetalbsp/ps7_init_gpl.{c,h}&bsp/ps7_spl_init.cfrom Das U-boot