Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to open ftdi device: -6 (ftdi_usb_reset failed) #398

Closed
PedroAntunes178 opened this issue Oct 25, 2023 · 2 comments
Closed

unable to open ftdi device: -6 (ftdi_usb_reset failed) #398

PedroAntunes178 opened this issue Oct 25, 2023 · 2 comments

Comments

@PedroAntunes178
Copy link

PedroAntunes178 commented Oct 25, 2023

Hello,

I am trying to program the IceSugar-pro board. That uses the ECP5 FPGA.
I have encountered several errors.

First, unable to open ftdi device: -3 (device not found) which happened if I called openFPGALoader without --busdev-num. The command I used that bypassed this issue was openFPGALoader --busdev-num 003:005 -c digilent_hs2 blink_100.bit. The bus and the device address can be obtained by executing lsusb.

Second, unable to open ftdi device: -4 (libusb_open() failed) which happened because my user did not have permissions to write to the Serial port. To solve this I followed issue #245 and added the following lines to /etc/udev/rules.d/99-openfpgaloader.rules:

# IceSugar-Pro
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="602b", MODE="664", GROUP="plugdev", TAG+="uaccess"

The current issue I am having trouble solving is unable to open ftdi device: -6 (ftdi_usb_reset failed). There does not seem to be much information about it.

Any help is appreciated,
Thank you in advance :)

Best,
Pedro

Ps:
openFPGALoader v0.11.0

@trabucayre
Copy link
Owner

Hello,

First issue:

The second issue give the answer for your first issue: you use -c digilent_hs2. This cable is based on ft232H (with vid:pid = 0x0403:0x6014) but your interface has a vid:pid = 0x1d50:0x602b.

Second issue:

yes you needs to have access right on your USB interface as mentioned here and here.

I'm agree those sections are not much visible.

Last issue:

I haven't an iceSugar-pro but have colorlight i5 (more or less similar) and the interface as mentioned in the iceSugar repo's README is:

the on board debugger iCELink (base on ARM Mbed DAPLink)

This isn't an FTDI (or clone) and you have to use the right protocol.

This is a specific protocol implemented on the onboard microcontroler (U3 in board schematic).
So maybe trying with -b cmsisdap --vid=0x1d50 --pid0x602b will resolve your issue.

@PedroAntunes178
Copy link
Author

Hey,

Nice, thank you! :)

The following command line worked:

openFPGALoader -c cmsisdap --vid=0x1d50 --pid=0x602b blink_1000.bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants