On 24/01/2025 01:14, [email protected] wrote:
Hi,
  In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); function segmentation fault is coming. So, how to resolve this error?

You are passing it parameters that are incorrect -- either there's a problem with the rx_streamer pointer, or &stream_cmd   is incorrect.   You're basically asking how to debug a C program.    Just because some known-to-work function raises a   segfault *inside* the function does not mean that the function is broken.  Functions generally must necessarily "trust"   that when they are being passed objects of various types (pointers, etc) that those pointers are valid. If that assumption   isn't correct, then the called function can fail because it (for example) attempts to de-reference a bad pointer.

This is the way C/C++ works.  It doesn't have a runtime system to keep you from doing this.   This question is generic
  to C/C++, and has nothing, per se, to do with the UHD C library.












On 2025-01-24 01:04, Marcus D. Leech wrote:
On 24/01/2025 00:33, [email protected] wrote:
Hi,
   Recently, I have bought USRP B205mini board. I am working on it. I have downloaded the UHD driver from the ubuntu package(sudo apt-get install libuhd-dev uhd-host).

   When the board is connected to the PC it is detected when I give the uhd_find_devices it shows the serial,name,product and type.

   So, I have written the code for receiving the data. When I am build the code it doesn't show any error. When I run the program some API functions are working fine. when it reach the uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); and uhd_rx_streamer_recv(rx_streamer, buffs_ptr, SAMPLES_PER_BURST, &rx_metadata, burst_duration, false, &items_received);  it automatically terminates the program.

   When I debug line by line, after reaching the above function it shows like No source available for "uhd_rx_streamer_issue_stream_cmd() at 0x7ffff7227cfe" .  What may be the issue?

   Also I want to configure the GPIO pins in the board. For that I need GPIO bank name, Can you give me the GPIO bank name of this board?


With regards,
Kavinraj.
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
There's also a "gpio" utility in the examples, which includes a "--list-banks" option.

_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to