Install the tools we need to get and compile OpenOCD:
sudo apt-get update
sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-devDownload the latest source code for OpenOCD with:
git clone http://openocd.zylin.com/openocdConfigure for the Pi and it's gpio:
cd openocd
./bootstrap
./configure --enable-sysfsgpio --enable-bcm2835gpioMake and install:
make
sudo make installMake the following connections between the AmiLoop and the Pi
| AmiLoop | ↔ | Raspberry Pi | Pin # |
|---|---|---|---|
Vin |
↔ | 3.3v |
1 |
GND |
↔ | GND |
20 |
IO |
↔ | GPIO 8 |
24 |
CLK |
↔ | GPIO 11 |
23 |
The end result should look like this (ignore brown wire in picture):
From the root of this repository run the following command:
openocd -f amiloopv4.cfgTo flash the older v3 firmware instead, use this command:
openocd -f amiloopv3.cfgTo flash a different hex file, make a copy of one of the cfg files and modify the file name on line 11

