Ok, now is time to program XC9572XL
First download and install OpenOCD:git clone git://git.code.sf.net/p/openocd/code openocd
cd openocd/
./bootstrap
./configure -–enable-sysfsgpio -–enable-bcm2835gpio
make && make install
The next step is to setup the configuration file.
To do so, create a copy of the raspberrypi2-native config file:
cp /usr/local/share/openocd/scripts/interface/
raspberrypi2-native.cfg /usr/local/share/openocd/scripts/interface/raspberrypi4.cfg
Modify file raspberrypi4.cfg as follows:
1. uncomment and update “bcm2835gpio_jtag_nums 5 6 16 25”
2. comment “bcm2835gpio_swd_nums”
3. add the line “adapter speed 100”
4. add the line "transport select jtag"
5. add the line "bcm2835gpio_peripheral_base 0xFE000000"
6. uncomment and update “bcm2835gpio_speed_coeffs 236181 60"
You can download the modified file here.
And now program your Xilinx directly,
Navigate to the directory with svf the file in the terminal and run the following command:
openocd -f /usr/local/share/openocd/scripts/interface/raspberrypi4.cfg -c “init; svf rpi2s3.svf” -c shutdown
After about 45s you should see something like this:
C ongrats, you have now programmed your Xilinx :)
Comments
Post a Comment