[USRP-users] Re: Bus errors and UHD exceptions with simple I/Q recorder

2022-08-14 Thread woznych
Nikos, Thanks for the reply. I traced it to the “recv” call which has left me puzzled. I added a bunch of instrumentation to see if I was walking off the end of my memory that was allocated to the 16-bit I/Q buffer. `const std::int32_t startIndex = 2*num_accum_samps;` `const std::int32_t remai

[USRP-users] Re: Bus errors and UHD exceptions with simple I/Q recorder

2022-08-14 Thread Nikos Balkanas
Aaaah, it's the dreaded max_samps_per_buffer:( Yup, you need to make your read buffer aligned to max_samps_per_buffer... HTH Nikos On Sun, Aug 14, 2022 at 9:24 PM wrote: > > Nikos, > > Thanks for the reply. I traced it to the “recv” call which has left me > puzzled. I added a bunch of instrumen

[USRP-users] Re: Bus errors and UHD exceptions with simple I/Q recorder

2022-08-14 Thread Marcus D. Leech
On 2022-08-14 20:57, Nikos Balkanas wrote: Aaaah, it's the dreaded max_samps_per_buffer:( Yup, you need to make your read buffer aligned to max_samps_per_buffer... HTH Nikos I'll note that rx_samples_to_file uses:     std::vector buff(samps_per_buff); For its buffer.  I don't know whether std