Closed Gbps closed 1 year ago
Hello Gbps, I have never seen this issue. How do you know the Litefury is rebooting? Does the power or 'done' LED flicker? That error message implies the libusb function call isn't returning- which could be a lot of things, especially when using USB through a VM. That said I use a VM with USB all the time and don't usually have trouble.
Hey thanks for the quick reply. I didn't note in the previous post, but this is a Nitefury 2 board. I don't actually know that it is resetting, to be honest, so that might be bad information and just an assumption. The power or done LEDs do not flicker.
As a last ditch effort, I just dug out a new microusb cable for my programmer and gave that a shot. So far, it has not failed programming yet. I did some scientific method and confirmed that the usb port, clock speed, power state, pcie slot, all of those things remained consistent but just swapping out the cord to the old cord caused this issue and the new cord did not have the issue.
I think it's safe enough to say that something happened to this microusb cord resulting in this. I doubt the tolerances on these Amazon cords are particularly good so I can imagine over time something has resulted in the cord causing libusb to disconnect.
Thank you for taking a look!
Hey there,
I don't know if you've experienced this yet, but I had no problems flashing the board over JTAG prior to the issue happening now. I have the same setup, same programmer, same cord, etc. and the only thing that's changed is that I upgraded my motherboard/cpu on my main desktop which is doing the programming.
It appears that the device is resetting mid-programming. After a series of reboots and power cycles I did get it to program a few times, although now it's back to doing this and I haven't been able to get a successful reprogram.
Openocd is running in an ubuntu server 22.04 VM under VMWare workstation with the USB being passed through to the guest.
There's a lot of things that could be going wrong here, but hoping maybe someone has seen this before and figured out what was going on. It could just be I need to replace the cable or something to that effect.
Output from openocd:
The configuration file:
And openocd version: