wuxx / icesugar

iCESugar FPGA Board (base on iCE40UP5k)
350 stars 96 forks source link

unable to run make prog #48

Closed quantrpeter closed 7 months ago

quantrpeter commented 1 year ago

hi, my board is Lattice iCE40UP5k , when i plug it in, my ubuntu mount it as a drive and make prog not work, please help:

/home/peter/workspace/ice40_ultraplus_examples/leds>make prog iceprog -S leds.bin init.. Can't find iCE FTDI USB device (vendor_id 0x0403, device_id 0x6010 or 0x6014). ABORT. make: *** [Makefile:10: prog] Error 2

wuxx commented 1 year ago

please try cmd icesprog leds.bin

brandcrz88 commented 4 months ago

Hi, I hope someone finds this useful.

I am using Ubuntu, for me the problem had to do with setting the rules and permissions properly.

export PATH="/path/to/fomu-toolchain-Linux/bin:$PATH"

sudo /path/to/fomu-toolchain-Linux/bin/iceprog stopwatch.bin

lsusb

sudo /etc/udev/rules.d/99-usb-serial.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="dialout"

sudo udevadm control --reload-rules

sudo udevadm trigger

sudo usermod -aG dialout $USER

I hope that now you can run make prog directly from /stopwatch-dual