On 2022-01-07 04:13, mobizmn--- via USRP-users wrote:

I am trying to run the tx_timed_sample example of UHD with USRP B210. When I run uhd_find_devices or uhd_usrp_probe, the USRP device is detected correctly and the details are shown correctly. But when I try to run the code by |./tx_timed_samples, |I get the following error:

|[WARNING] [B200] EnvironmentError: IOError: Could not find path for image: usrp_b200_fw.hex|

|Using images directory: <no images directory located>|

|Set the environment variable 'UHD_IMAGES_DIR' appropriately or follow the below instructions to download the images package.|

|Please run:|

|"/usr/lib/x86_64-linux-gnu/uhd/utils/uhd_images_downloader.py"|

But if I run the python examples, they work perfectly fine. The file “|uhd_images_downloader.py|“ is not actually location on the address specified in the above error.


I tried the solution here <https://blog.actorsfit.com/a?ID=01550-735cb626-f122-4f20-941b-ad1ad9280ba6> and ran sudo cp -r /usr/local/share/uhd/images /usr/share/uhd, but the problem was still not resolved.


On this <https://github.com/EttusResearch/uhd/issues/43> page, they suggested to do this:

*|export UHD_IMAGES_DIR=/usr/local/share/uhd/images|*

But that also did not work for me.


Can anybody help me with how I can locate the image directory?


_______________________________________________
USRP-users mailing list [email protected]
To unsubscribe send an email [email protected]
How did you install Gnu Radio?  Is this on a recent version of Ubuntu?  I noticed the same thing on Ubuntu, and I just put the setting of UHD_IMAGES_DIR in
  my ~/.bashrc and it's all fine.

Remember that in Linux, environment variables propagate *downwards* in the process tree.  So if you set the variable on the command-line in one window,   it will absolutely *NOT* affect any other process tree.   Which is why you put it in your .bashrc.

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

Reply via email to