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:
openocd
arm-none-eabi-gdb
arm-none-eabi-gcc
arm-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/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
- Add your user to the group that owns ttyUSB1 (usually
dialout
oruucp
) 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 run
bsp/boot.S
&bsp/Zynq.ld
from bigbrett/zybo-baremetalbsp/ps7_init_gpl.{c,h}
&bsp/ps7_spl_init.c
from Das U-boot