FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
773 stars 131 forks source link

Error: board icestick not connected #326

Closed neo-seeker closed 9 months ago

neo-seeker commented 1 year ago

Hi Folks. I got myself a new ICE40 Eval board iCE40HX1K-TQ144. Used APIO repository and when I run the command" apio upload, I get the following:

(APIO) PS C:\apio\icestick\leds> apio upload c:\program files\python38\lib\site-packages\requests__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported " (DEBUG) Profile path: C:\Users\singh.apio\profile.json (DEBUG) Home_dir: C:\Users\singh.apio (DEBUG) Profile path: C:\Users\singh.apio\profile.json (DEBUG) Home_dir: C:\Users\singh.apio (DEBUG) Run Command: lsusb (DEBUG) System_base_dir: C:\Users\singh.apio\packages\tools-oss-cad-suite (DEBUG) System bin dir: C:\Users\singh.apio\packages\tools-oss-cad-suite\bin (DEBUG) Executable file: C:\Users\singh.apio\packages\tools-oss-cad-suite\bin\lsusb.exe (DEBUG) Profile path: C:\Users\singh.apio\profile.json (DEBUG) Home_dir: C:\Users\singh.apio (DEBUG) Run Command: lsftdi (DEBUG) System_base_dir: C:\Users\singh.apio\packages\tools-oss-cad-suite (DEBUG) System bin dir: C:\Users\singh.apio\packages\tools-oss-cad-suite\bin (DEBUG) Executable file: C:\Users\singh.apio\packages\tools-oss-cad-suite\bin\lsftdi.exe Error: board icestick not connected

I have installed the Zadig drivers too. Tried Ubuntu and and windows but still to no avail.

Obijuan commented 1 year ago

It looks llike your project is configured for the icestick board, but your are using a different one (Ice40 Eval board)

You can check the supported boards with this command:

apio boards -l

And then configure your project for your board. I am not sure, but maybe your board is iCE40-HX1K-EVB

apio init -b iCE40-HX1K-EVB

neo-seeker commented 1 year ago

Hi Obijuan, thanks for your help. The board error got resolved. I followed the following steps for iceprogduino

To install iceprogduino:

clone the repository git clone https://github.com/OLIMEX/iCE40HX1K-EVB.git

cd into the direcory cd iCE40HX1K-EVB/programmer/iceprogduino

compile and install make sudo make install

Run iceprogduino iceprogduino

Now I get the following issue with iceprogduino.

lisa@lisa-VirtualBox:~/apio/iCE40-HX1K-EVB/leds$ iceprogduino -I /dev/bus/usb/001/005 hardware.bin

error 25 from tcgetattrerror 25 from tggetattrSerial: /dev/bus/usb/001/005: Inappropriate ioctl for device

file size: 32220

erase 64kB sector at 0x000000..erased

programming..

prog 0x000000 +0x100........................................................................................................................................................................

The programming goes into endless loop with the aforementioned error.

wwoofbum commented 11 months ago

I am getting the same error. I am running apio on a Raspberry Pi 4B, using the latest 64 bit PiOS, followed the installation steps it the docs, followed the Quick Start guide, using an icestick with an FPGA labeled iCE40HX1K-TQ144

Obijuan commented 9 months ago

Apio 0.8.2 has been released with a fix for this initial issue. Feel free to reopen it again if it does not work (or open a new issue for a different problem)