Update B35APO Buid on MZ_APO authored by Pavel Pisa's avatar Pavel Pisa
......@@ -6,9 +6,36 @@
## Setup Build Environment with Vivado
Install Xilinx Vivado on your computer or use laboratory computers in some laboratory at Departent of Control Engineering (select Debian Bullseye distribution). You can access [laboratories remotely](https://support.dce.felk.cvut.cz/mediawiki/index.php/Hlavn%C3%AD_strana) as well.
When you have Xilinx Vivado installed, setup search PATH and other components for given shell environment
```
. /opt/xilinx/vivado-2018.2/Vivado/2018.2/settings64.sh
```
The dot before path to the command is really mandatory, it runs shell command in actual shell and leaves PATH and other environment variables setup correctly.
## Build of MZ_APO Design for B35APO a M/B35PSR
Clone the peripherals design project [repository](https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top/)
```
git clone https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top.git
cd zynq-can-sja1000-top
```
Switch to desired branch
```
git checkout microzed-2dc
```
and build the design (Vivado environment has to be setup, see the steps above)
```
make system_project
make system/system.hdf
```