JuliaComputing / xtrx_julia

XTRX LiteX/LitePCIe based design for Julia Computing
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Transmitting zeros always triggers [ERROR] VCO select FAIL #120

Closed zsoerenm closed 1 year ago

zsoerenm commented 1 year ago

If you try to transmit zeros instead of a sinusoidal signal like

data_tx[:, 1] .= format.(
    round.(zeros(samples)),
    round.(zeros(samples))
)
data_tx[:, 2] .= format.(
    round.(zeros(samples)),
    round.(zeros(samples))
)

, you will always end up with the error

[ERROR] VCO select FAIL

even if you reset the device.

Even if you only transmit zeros at the real part, it will trigger the error:

data_tx[:, 1] .= format.(
    round.(zeros(samples)),
    round.(sin.(2π.*t.*rate).*(fullscale/2).*0.95.*DSP.hanning(samples)),
)
data_tx[:, 2] .= format.(
    round.(cos.(8π.*t.*rate).*(fullscale/2).*0.95.*DSP.hanning(samples)),
    round.(sin.(8π.*t.*rate).*(fullscale/2).*0.95.*DSP.hanning(samples)),
)
sjkelly commented 1 year ago

The VCO tune fail should happen at init or channel configuration. I wonder if this is just bad luck. Sometimes I need to try 4 times in a row before it will work. xref #81.