LimeSDR usb Problem

I also often see this problem, except it’s fixed as soon as I unplug then replug the LimeSDR. Sometimes I also reupload the FPGA and FX3, which may fix the problem (this is more convenient as I’m not next to the Lime).

I have a program that receives on 2 channels using the SoapySDR C API. Everything usually works fine. As I’m debugging I quite often kill the program and thus I don’t always clean things properly. Then after some time, when starting the program, I see the following after getting the device:

[INFO] Reference clock 30.72 MHz
[INFO] Device name: LimeSDR-USB
[INFO] Reference: 3.072e+07 MHz
e[1me[31m[ERROR] SetFrequencySXT(1250 MHz) - cannot deliver frequencye[0m
[INFO] LMS7002M calibration values caching Disable
e[1me[31m[ERROR] TuneVCO(CGEN) - failed to lock (cmphl!=0)e[0m
e[1me[31m[ERROR] SetFrequencyCGEN(80 MHz) failede[0m
e[1me[31m[ERROR] TuneVCO(CGEN) - failed to lock (cmphl!=0)e[0m
e[1me[31m[ERROR] SetFrequencyCGEN(440 MHz) failede[0m

When I then try to set the frequency with SoapySDRDevice_setFrequencyComponent using RF or directly SoapySDRDevice_setFrequency I get the same error

e[1me[31m[ERROR] SetFrequencySXR(2450 MHz) - cannot deliver frequencye[0m

but the call does not return an error (it returns 0).

Same when calling again SoapySDRDevice_setFrequencyComponent but with BB, I get an error but the call still doesn’t return an error

e[1me[31m[ERROR] SetNCOFrequency(index = 0) - Frequency(21 MHz) out of range [0-3.84249) MHze[0m

When opening LimeSuite I would also often see lots of ERROR: Write(64 bytes) failed. Right now LimeSuite is being very slow trying to contact the LimeSDR I guess. I ended up killing LimeSuite, and when retrying my program I get

e[1me[31m[ERROR] ConnectionSTREAM: Failed to open devicee[0m
e[1me[31m[ERROR] Failed to open devicee[0m
e[1me[31m[ERROR] connection is not opene[0m
e[1me[31m[ERROR] Write(64 bytes) failede[0m
e[1me[31m[ERROR] connection is not opene[0m
e[1me[31m[ERROR] Write(64 bytes) failede[0m
e[1me[31m[ERROR] Failed to open. Device is busy.e[0m

I’m using a USB3 cable, Windows 10. LED 1 blinking red, 4 off, 5 red (USB status), 8 green. I did not check the status when the Lime was still accessible though, I’ll try remembering to check it next time it happens.

After unplugging and replugging, the 5 is now green and everything is working normally.

There’s been several mentions of such issue before, but I’m not sure if it’s connected: