[color=#222222][size=small][font=Arial, Helvetica, sans-serif]In my project, I am using an Alchitry Au to read some data from a sensor and trying to make real-time serial communication with a host PC (sending commands from the host machine and receiving data from the FPGA board using python [color=#1155cc]pyserial[/color]). This project works fine in the windows host machine. [/font][/size][/color]
[color=#222222][size=small][font=Arial, Helvetica, sans-serif]My problem starts when I try to introduce a Linux host PC. To work with the Alchitry loader, I need to move the [/font][font=Courier New]99-alchitry.rules[/font][font=Arial, Helvetica, sans-serif] file from the driver folder into[/font][font=Courier New] /etc/udev/rules.d/[/font][font=Arial, Helvetica, sans-serif]; however, copying this rule file unbind the Alchitry Au from the [/font][font=Courier New]/dev/tty*[/font][font=Arial, Helvetica, sans-serif] port and the host PC can not communicate with the FPGA using the python any more. Could anyone please suggest some solution to cope up with the issue?[/font][/size][/color]
The Alchitry Loader uses libd2xx (the proprietary driver) for the interface which requires the default driver to be unbound.
However, you can modify the rules file to only unbind the first interface (JTAG/SPI) and not the second (serial port). This really should’ve been in the udev rules before but I just spend about an hour figuring out how to get it to work.
Here’s the updated file.
[code]SUBSYSTEM!=“usb|usb_device”, GOTO=“ft2232_rules_end”
ACTION!=“add”, GOTO=“ft2232_rules_end”
KERNEL==“*.0”, ATTRS{idVendor}==“0403”, ATTRS{idProduct}==“6010”, RUN+=“/bin/sh -c ‘echo $kernel > /sys/bus/usb/drivers/ftdi_sio/unbind’”
ATTRS{idVendor}==“0403”, ATTRS{idProduct}==“6010”, MODE=“0666”, GROUP=“dialout”, ENV{ID_MM_DEVICE_IGNORE}=“1”
LABEL=“ft2232_rules_end”[/code]
Let me know if this works for you and I’ll include it as the default.
Now, it’s perfectly working! Thanks a lot! So, you can include it as default!
Great! I updated the file in the main download.
Just I have checked the main download. The file is not updated (Just informing you).
Thanks for pointing out those links. That’s the original blog post announcement, not the main loader page.
The main page is here https://alchitry.com/pages/alchitry-loader
I’m actually not sure why that blog post even exists as it was just a duplicate of the main page so I deleted it.