JuliaComputing / xtrx_julia

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

Add new limesuite driver #168

Closed zsoerenm closed 1 year ago

zsoerenm commented 1 year ago

cc @sjkelly On my local machine I fail to set the bandwidth for the second receive channel (first receive channel works fine)

julia> cx2.bandwidth = 5u"MHz"
[DEBUG] SoapyLMS7::setBandwidth(Rx, 1, 5 MHz)
[DEBUG] lms7Device->SetLPF(Rx, 1, 5 MHz)
[DEBUG] MCU algorithm time: 10 ms
MCU programming : 16384/16384
MCU Programming finished, 619 ms
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU Ref. clock: 26 MHz
[DEBUG] MCU algorithm time: 0 ms
[DEBUG] MCU algorithm time: 364 ms
[ERROR] Tune Rx Filter: MCU error 12 (Rx R_CTL_LPF range limit reached)
[ERROR] setBBLPF(Rx, 1, 5 MHz) Failed
ERROR: SoapySDR.SoapySDRDeviceError(-1, "setBandwidth() failed")
Stacktrace:
 [1] with_error_check
   @ ~/xtrx_julia/software/SoapySDR.jl/src/error.jl:27 [inlined]
 [2] macro expansion
   @ ~/xtrx_julia/software/SoapySDR.jl/src/error.jl:34 [inlined]
 [3] SoapySDRDevice_setBandwidth
   @ ~/xtrx_julia/software/SoapySDR.jl/src/lowlevel/auto_wrap.jl:2028 [inlined]
 [4] setproperty!(c::SoapySDR.Channel, s::Symbol, v::Unitful.Quantity{Int64, 𝐓^-1, Unitful.FreeUnits{(MHz,), 𝐓^-1, nothing}})
   @ SoapySDR ~/xtrx_julia/software/SoapySDR.jl/src/highlevel.jl:453
 [5] top-level scope
   @ REPL[6]:1
sjkelly commented 1 year ago

I am not sure why CI failed. I am going to run the pipeline on master to be sure it is unrelated.

sjkelly commented 1 year ago

CI is okay now