OLIMEX / iCE40HX1K-EVB

FPGA development board made with KiCAD
Apache License 2.0
102 stars 29 forks source link

Issues with flashing iceprog #14

Open loeiten opened 2 years ago

loeiten commented 2 years ago

Hi all

I'm following the guide at Getting started with FPGA with only Free and Open source software and hardware tools tutorial. However, I stumbled at the step:

Open the iceprog.ino sketch.

From menu Sketch–Include library–Manage libraries check if you have SPI and SPIFlash libraries installed if not install them.

Compile and Upload the sketch.

If I understand the guide correctly, the iceprog.ino is referring to https://github.com/OLIMEX/iCE40HX1K-EVB/blob/master/programmer/olimexino-32u4%20firmware/iceprog/iceprog.ino. However if I try to flash this on Arduino IDE I get the following error

/Users/michaell/Repos/iCE40HX1K-EVB/programmer/olimexino-32u4 firmware/iceprog/iceprog.cpp:1:1: error: expected unqualified-id before '.' token
 ../iceprog.ino
 ^

exit status 1

Compilation error: expected unqualified-id before '.' token

Also, it seems like there has been an update to iceprog.ino which is not reflected in this directory.

JarrettR commented 1 month ago

There's an open PR to fix this, but for those that don't want to mess about with patches:

iceprog.cpp is a symlink that some OSs don't seem to properly pull from git. Just copy the contents of iceprog.ino into iceprog.cpp and it'll work fine.