https://github.com/FPGAwars/apio/wiki/Quick-start
create new python virtual environment and install apio there.
virtualenv ~/fpgaenv
source ~/fpgaenv/bin/activate
pip install -U apio
(fpgaenv) [fahmad@ryzen fpga-icestick]$ which apio
~/fpgaenv/bin/apio
(fpgaenv) [fahmad@ryzen fpga-icestick]$ apio --version
apio drivers --ftdi-enable
list
(fpgaenv) [fahmad@ryzen fpga-icestick]$ apio system --lsftdi
Number of FTDI devices found: 1
Checking device: 0
Manufacturer: FTDI, Description: Dual RS232-HS
apio examples -l
apio examples -d icestick/leds
list supported boards and create apio.ini
apio boards --list
apio init --board icestick
verify
apio verify
simulate
sudo dnf install gtkwave
apio sim
build
apio build
upload
apio upload
thanks to Fabian Zachs
on youtube comment section
Hi, I had the same issue. When you do
apio system --lsftdi
, the description doesnt match whats in the video/what apio expects. So to fix this, you need to find the apio/resources/boards.json file and change the description in there. To find this, i did:pip3 show apio
. That gives you the "location" of apio.cd
there and runfind . -name "boards.json"
. Edit the file's "icestick" description entry. Change it from "Lattice FTUSB Interface Cable" to "Dual RS232-HS". Then retryapio upload