usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

REG : B205MINI-I board

K
kavinraj@atindriya.co.in
Fri, Jan 24, 2025 5:33 AM

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.

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.
MD
Marcus D. Leech
Fri, Jan 24, 2025 5:58 AM

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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?

That just means that the debugger doesn't know where to find the source
code.  If the program automatically terminated, you
  likely passed an argument with a wild pointer that pointed at invalid
memory.  That's just a programming in C/C++ question.

   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?

See here:

https://files.ettus.com/manual/page_gpio_api.html#xgpio_fpanel_xample

There's a "get_gpio_banks()" function that can show you bank name(s).

With regards,
Kavinraj.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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? That just means that the debugger doesn't know where to find the source code.  If the program automatically terminated, you   likely passed an argument with a wild pointer that pointed at invalid memory.  That's just a programming in C/C++ question. > >    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? > > See here: https://files.ettus.com/manual/page_gpio_api.html#xgpio_fpanel_xample There's a "get_gpio_banks()" function that can show you bank name(s). > With regards, > Kavinraj. > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com
MD
Marcus D. Leech
Fri, Jan 24, 2025 6:04 AM

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

There's also a "gpio" utility in the examples, which includes a
"--list-banks" option.

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com There's also a "gpio" utility in the examples, which includes a "--list-banks" option.
K
kavinraj@atindriya.co.in
Fri, Jan 24, 2025 6:04 AM

Hi,
Thank you for your reply.

How to resolve this issue?

Thanks,
Kavinraj.

On 2025-01-24 00:58, Marcus D. Leech wrote:

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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?
That just means that the debugger doesn't know where to find the source
code.  If the program automatically terminated, you
  likely passed an argument with a wild pointer that pointed at invalid
memory.  That's just a programming in C/C++ question.

   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?

See here:

https://files.ettus.com/manual/page_gpio_api.html#xgpio_fpanel_xample

There's a "get_gpio_banks()" function that can show you bank name(s).

With regards,
Kavinraj.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Hi, Thank you for your reply. How to resolve this issue? Thanks, Kavinraj. On 2025-01-24 00:58, Marcus D. Leech wrote: > On 24/01/2025 00:33, kavinraj@atindriya.co.in 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? > That just means that the debugger doesn't know where to find the source > code.  If the program automatically terminated, you >   likely passed an argument with a wild pointer that pointed at invalid > memory.  That's just a programming in C/C++ question. > > >> >>    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? >> >> > See here: > > https://files.ettus.com/manual/page_gpio_api.html#xgpio_fpanel_xample > > There's a "get_gpio_banks()" function that can show you bank name(s). > > >> With regards, >> Kavinraj. >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com
K
kavinraj@atindriya.co.in
Fri, Jan 24, 2025 6:14 AM

Hi,
In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); function
segmentation fault is coming. So, how to resolve this error?

On 2025-01-24 01:04, Marcus D. Leech wrote:

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
There's also a "gpio" utility in the examples, which includes a
"--list-banks" option.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Hi, In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); function segmentation fault is coming. So, how to resolve this error? On 2025-01-24 01:04, Marcus D. Leech wrote: > On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com > There's also a "gpio" utility in the examples, which includes a > "--list-banks" option. > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com
MD
Marcus D. Leech
Fri, Jan 24, 2025 6:19 AM

On 24/01/2025 01:14, kavinraj@atindriya.co.in 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, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

There's also a "gpio" utility in the examples, which includes a
"--list-banks" option.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

On 24/01/2025 01:14, kavinraj@atindriya.co.in 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, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com >>> To unsubscribe send an email to usrp-users-leave@lists.ettus.com >> There's also a "gpio" utility in the examples, which includes a >> "--list-banks" option. >> >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com
MD
Marcus D. Leech
Fri, Jan 24, 2025 6:28 AM

On 24/01/2025 01:14, kavinraj@atindriya.co.in wrote:

Hi,
  In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd);
function segmentation fault is coming. So, how to resolve this error?

The UHD source includes some examples in C:

rx_samples_c.c
tx_samples_c.c

These examples appear to work just fine.

On 2025-01-24 01:04, Marcus D. Leech wrote:

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

There's also a "gpio" utility in the examples, which includes a
"--list-banks" option.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

On 24/01/2025 01:14, kavinraj@atindriya.co.in wrote: > Hi, >   In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); > function segmentation fault is coming. So, how to resolve this error? > > The UHD source includes some examples in C: rx_samples_c.c tx_samples_c.c These examples appear to work just fine. > > > > > > > > > > > On 2025-01-24 01:04, Marcus D. Leech wrote: >> On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com >>> To unsubscribe send an email to usrp-users-leave@lists.ettus.com >> There's also a "gpio" utility in the examples, which includes a >> "--list-banks" option. >> >> _______________________________________________ >> USRP-users mailing list -- usrp-users@lists.ettus.com >> To unsubscribe send an email to usrp-users-leave@lists.ettus.com
K
kavinraj@atindriya.co.in
Sat, Jan 25, 2025 4:14 AM

Hi,
I have one issue in accessing the GPIO pin in B205mini-i board.
what is the mask value in the API uhd_usrp_set_gpio_attr() function?

I have written code to access the pin 1 and 2. For that I have given 

the mask value as 0x01 and 0x02. I am able to control the GPIO pin 1
with mask value 0x01. But, I am unable to access the GPIO pin 2 with
mask value 0x02.
What may be the issue?
The following is the code I have written.

const char* bank = "FP0";
size_t mboard = 0;

uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x02, mboard);

uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x02, mboard);

uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x01, mboard);
uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x02, mboard);

Thanks,
Kavinraj.

On 2025-01-24 01:28, Marcus D. Leech wrote:

On 24/01/2025 01:14, kavinraj@atindriya.co.in wrote:

Hi,
  In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd);
function segmentation fault is coming. So, how to resolve this error?

The UHD source includes some examples in C:

rx_samples_c.c
tx_samples_c.c

These examples appear to work just fine.

On 2025-01-24 01:04, Marcus D. Leech wrote:

On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com
There's also a "gpio" utility in the examples, which includes a
"--list-banks" option.


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com


USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-leave@lists.ettus.com

Hi, I have one issue in accessing the GPIO pin in B205mini-i board. what is the mask value in the API uhd_usrp_set_gpio_attr() function? I have written code to access the pin 1 and 2. For that I have given the mask value as 0x01 and 0x02. I am able to control the GPIO pin 1 with mask value 0x01. But, I am unable to access the GPIO pin 2 with mask value 0x02. What may be the issue? The following is the code I have written. const char* bank = "FP0"; size_t mboard = 0; uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x01, mboard); uhd_usrp_set_gpio_attr(usrp, bank, "CTRL", 0, 0x02, mboard); uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x01, mboard); uhd_usrp_set_gpio_attr(usrp, bank, "DDR", 1, 0x02, mboard); uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x01, mboard); uhd_usrp_set_gpio_attr(usrp, bank, "OUT", 0, 0x02, mboard); Thanks, Kavinraj. On 2025-01-24 01:28, Marcus D. Leech wrote: > On 24/01/2025 01:14, kavinraj@atindriya.co.in wrote: >> Hi, >>   In uhd_rx_streamer_issue_stream_cmd(rx_streamer,&stream_cmd); >> function segmentation fault is coming. So, how to resolve this error? >> >> > The UHD source includes some examples in C: > > rx_samples_c.c > tx_samples_c.c > > > These examples appear to work just fine. > > >> >> >> >> >> >> >> >> >> >> >> On 2025-01-24 01:04, Marcus D. Leech wrote: >>> On 24/01/2025 00:33, kavinraj@atindriya.co.in 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 -- usrp-users@lists.ettus.com >>>> To unsubscribe send an email to usrp-users-leave@lists.ettus.com >>> There's also a "gpio" utility in the examples, which includes a >>> "--list-banks" option. >>> >>> _______________________________________________ >>> USRP-users mailing list -- usrp-users@lists.ettus.com >>> To unsubscribe send an email to usrp-users-leave@lists.ettus.com > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-leave@lists.ettus.com