Open osresearch opened 5 years ago
As a workaround, I'm able to add this to my Makefile
for forcing a reset, flashing the device, and then re-attaching the /dev/ttyUSB0
port to the FTDI SIO kernel driver:
%.flash: %.bin
iceprog -e 128 # Force a reset to stop any serial output
iceprog $<
echo 1-1:1.0 > /sys/bus/usb/drivers/ftdi_sio/bind # re-attach serial
On the upduino v2 with ice40 up5k and an FTDI 232H chip, the device enumerates as a serial device and creates
/dev/ttyUSB0
. I can send/receive data from the board fine:When the board is reprogrammed with
iceprog
, however, it disconnects from/dev/ttyUSB0
:In order to have it re-enumerate and see the serial output from the FPGA, I have to unplug/re-plug the cable. Is there a way to have
iceprog
switch the FTDI back into serial mode after programming?