- The IR01 is inserted with the name
IR01
facing away from the center of the Raspberry Pi. - The header on the IR01 is inserted in to the Raspberry Pi starting with pin 1
- See image to the right.
Using the IR01 as an OpenOCD SWD programmer for supported XinaBox Cores
Follow Adafruit's excellent indstructions found here, until the point saying That's pretty much it!
There might be a simpler way, and if so, please post a pull request.
- Change the SWD pin numbers:
sudo nano /usr/local/share/openocd/scripts/interface/raspberrypi2-native.cfg
- Find
bcm2835gpio_swd_nums
and change tobcm2835gpio_swd_nums 11 8
- Find and uncomment
bcm2835gpio_srst_num
and change tobcm2835gpio_srst_num 4
- Exit:
^x
- Insert the CS11 using two connectors (1x small and 1x large) as per the image above.
- Create a suitable folder:
cd ~
mkdir bootloaders
cd bootloaders
- Download the CS11 Bootloader:
wget https://github.com/xinabox/XinaBox-Bootloaders/raw/master/CS11/cs11_bootloader.bin
- Download the CS11 Config file:
wget https://raw.githubusercontent.com/xinabox/XinaBox-Bootloaders/master/CS11/openocd.cfg
- Run OpenOCD:
sudo openocd -f openocd.cfg
- Go to the section above and replace CS11 with name of xChip Core.
The OpenOCD you install will be the latest one, and the associated openocd.cfg
might be out of date. You might need to change some parameters. If you do so, please don't hesitate to fire of a pulle request.