bladeRF icon indicating copy to clipboard operation
bladeRF copied to clipboard

Binary Save File unable to surpass 4.3 GB

Open nedonatelli opened this issue 3 years ago • 0 comments

Configuring the n value in rx config wraps after 2^31 (2.147 bil) i.e. setting n=10G will give the same as n=2G

Setting n=0 works but the overall file being written to will stop at 4.3 GB (uint32 max).

I've tried a number of different configurations on bandwidth/sample rate and keep hitting the 4.3 GB limit. I'm not receiving any overflows, the last error message being reported is an Invalid Checksum error. Even running with verbosity level set to verbose reports no messages about the invalid checksum

I dug into some of the rx.c and found most variables set to size_t which is 2^64 on my machine. It seems like there's something being assigned as a uint32?

Setting the BW/Sample Rate to 30e6 and n=0 should be able to replicate this in half a minute.

nedonatelli avatar Jul 08 '20 16:07 nedonatelli