Thanks John for the quick reply.  You’re right, my environment must have been 
wrong.  After issuing the source ./setup_env.sh command thing got a little 
further but this time there’s a few errors at the end after it loaded the FPGA 
image.  Here’s the capture.  I’ve included the which uhd_usrp_prob to confirm 
that the environment is setup properly.

root@ettus-e3xx-sg3:~/newinstall# which uhd_usrp_probe
/home/root/newinstall/usr/bin/uhd_usrp_probe
root@ettus-e3xx-sg3:~/newinstall#
root@ettus-e3xx-sg3:~/newinstall#
root@ettus-e3xx-sg3:~/newinstall#
root@ettus-e3xx-sg3:~/newinstall# uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 4.9.2; Boost_105700; 
UHD_4.0.0.rfnoc-devel-702-geec24d7b
[INFO] [E300] Loading FPGA image: 
/home/root/newinstall/usr/share/uhd/images/usrp_e310_fpga_sg3.bit...
[INFO] [E300] FPGA image loaded
[INFO] [E300] Initializing core control (global registers)...

[INFO] [E300] Performing register loopback test...
[INFO] [E300] Register loopback test passed
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000000)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
  _____________________________________________________
/
|       Device: E-Series Device
|     _____________________________________________________
|    /
|   |       Mboard: E3XX SG3
|   |   product: 30675
|   |   revision: 7
|   |   serial: 3140619
|   |   mac-addr: 00:80:2f:18:76:03
|   |   FPGA Version: 255.0
|   |   FPGA git hash: 7df6290-dirty
|   |   RFNoC capable: Yes
|   |
|   |   Time sources:  none, internal, external
|   |   Clock sources: internal
|   |   Sensors: temp, ref_locked
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: 0
|   |   |
|   |   |   Freq range: 0.000 to 0.000 MHz
|   |     _____________________________________________________
|   |    /
|   |   |       RX DSP: 1
|   |   |
|   |   |   Freq range: 0.000 to 0.000 MHz
|   |     _____________________________________________________
|   |    /
|   |   |       RX Dboard: A
|   |   |   ID: E310 MIMO XCVR (0x0110)
|   |   |   Serial: 313AF1D
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Frontend: A
|   |   |   |   Name: FE-RX2
|   |   |   |   Antennas: TX/RX, RX2
|   |   |   |   Sensors: temp, rssi, lo_locked
|   |   |   |   Freq range: 50.000 to 6000.000 MHz
|   |   |   |   Gain range PGA: 0.0 to 76.0 step 1.0 dB
|   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0 Hz
|   |   |   |   Connection Type: IQ
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Frontend: B
|   |   |   |   Name: FE-RX1
|   |   |   |   Antennas: TX/RX, RX2
|   |   |   |   Sensors: temp, rssi, lo_locked
|   |   |   |   Freq range: 50.000 to 6000.000 MHz
|   |   |   |   Gain range PGA: 0.0 to 76.0 step 1.0 dB
|   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0 Hz
|   |   |   |   Connection Type: IQ
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       RX Codec: A
|   |   |   |   Name: E3x0 RX dual ADC
|   |   |   |   Gain Elements: None
|   |     _____________________________________________________
|   |    /
|   |   |       TX DSP: 0
|   |   |
|   |   |   Freq range: 0.000 to 0.000 MHz
|   |     _____________________________________________________
|   |    /
|   |   |       TX DSP: 1
|   |   |
|   |   |   Freq range: 0.000 to 0.000 MHz
|   |     _____________________________________________________
|   |    /
|   |   |       TX Dboard: A
|   |   |   ID: E310 MIMO XCVR (0x0110)
|   |   |   Serial: 313AF1D
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Frontend: A
|   |   |   |   Name: FE-TX2
|   |   |   |   Antennas: TX/RX
|   |   |   |   Sensors: temp, lo_locked
|   |   |   |   Freq range: 50.000 to 6000.000 MHz
|   |   |   |   Gain range PGA: 0.0 to 89.8 step 0.2 dB
|   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0 Hz
|   |   |   |   Connection Type: IQ
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Frontend: B
|   |   |   |   Name: FE-TX1
|   |   |   |   Antennas: TX/RX
|   |   |   |   Sensors: temp, lo_locked
|   |   |   |   Freq range: 50.000 to 6000.000 MHz
|   |   |   |   Gain range PGA: 0.0 to 89.8 step 0.2 dB
|   |   |   |   Bandwidth range: 200000.0 to 56000000.0 step 0.0 Hz
|   |   |   |   Connection Type: IQ
|   |   |   |   Uses LO offset: No
|   |   |     _____________________________________________________
|   |   |    /
|   |   |   |       TX Codec: A
|   |   |   |   Name: E3x0 TX dual DAC
|   |   |   |   Gain Elements: None
|   |     _____________________________________________________
|   |    /
|   |   |       RFNoC blocks on this device:
|   |   |
|   |   |   * Radio_0
|   |   |   * DDC_0
|   |   |   * DUC_0

[INFO] [E300] Loading FPGA image: 
/home/root/newinstall/usr/share/uhd/images/usrp_e3xx_fpga_idle_sg3.bit...
[INFO] [E300] FPGA image loaded
[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

root@ettus-e3xx-sg3:~/newinstall#


I wasn’t sure that these errors were crucial so I continued with running an 
example.  Here’s the capture for the example.


root@ettus-e3xx-sg3:~/newinstall# cd ~/newinstall/usr/lib/uhd/examples/
root@ettus-e3xx-sg3:~/newinstall/usr/lib/uhd/examples# ./rx_samples_to_file 
--freq 100e6 --gain 0 --ant TX/RX --rate 1e6 --null

Creating the usrp device with: ...
[INFO] [UHD] linux; GNU C++ version 4.9.2; Boost_105700; 
UHD_4.0.0.rfnoc-devel-702-geec24d7b
[INFO] [E300] Loading FPGA image: 
/home/root/newinstall/usr/share/uhd/images/usrp_e310_fpga_sg3.bit...
[INFO] [E300] FPGA image loaded
[INFO] [E300] Initializing core control (global registers)...

[INFO] [E300] Performing register loopback test...
[INFO] [E300] Register loopback test passed
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000000)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
[WARNING] [RFNOC] [legacy_compat] No FIFO detected. Higher transmit rates may 
encounter errors.
Using Device: Single USRP:
  Device: E-Series Device
  Mboard 0: E3XX SG3
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: FE-RX2
  RX Channel: 1
    RX DSP: 1
    RX Dboard: A
    RX Subdev: FE-RX1
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: FE-TX2
  TX Channel: 1
    TX DSP: 1
    TX Dboard: A
    TX Subdev: FE-TX1

Setting RX Rate: 1.000000 Msps...
Actual RX Rate: 1.000000 Msps...

Setting RX Freq: 100.000000 MHz...
Actual RX Freq: 100.000000 MHz...

Setting RX Gain: 0.000000 dB...
Actual RX Gain: 0.000000 dB...

Waiting for "lo_locked": ++++++++++ locked.

Press Ctrl + C to stop streaming...
^C
Done!

[INFO] [E300] Loading FPGA image: 
/home/root/newinstall/usr/share/uhd/images/usrp_e3xx_fpga_idle_sg3.bit...
[INFO] [E300] FPGA image loaded
[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

[ERROR] [UHD] Exception caught in safe-call.
  in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with uhd::endianness_t 
_endianness = (uhd::endianness_t)1u]
  at /home/matt/e300/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:60
this->send_cmd_pkt(0, 0, true); -> AssertionError: (sts >> 7) & 0x1
  in typename T::sptr e300_transport::get_buff(double) [with T = 
uhd::transport::managed_send_buffer; typename T::sptr = 
boost::intrusive_ptr<uhd::transport::managed_send_buffer>]
  at /home/matt/e300/src/uhd/host/lib/usrp/e300/e300_fifo_config.cpp:250

root@ettus-e3xx-sg3:~/newinstall/usr/lib/uhd/examples#





Again any help with the UHD errors would be appreciated.  Also isn’t there 
supposed to be more blocks on the device other than Radio_0, DDC_0 and DUC_0?


Thanks
Matt



From: John Medrano <[email protected]>
Sent: Wednesday, July 04, 2018 10:29 AM
To: Mathieu Vinette <[email protected]>
Cc: [email protected]
Subject: Re: [USRP-users] Building RFNOC UHD on E310

Hello,

I have used the first method multiple times with no issues.

Did you issue command or is your setup_env.sh file correctly configured. You 
must run every time you get a new shell from E310:

source ./setup_env.sh

You may still be pointing at default version of GNU Radio installed on E310.

Run:  which uhd_usrp_probe

To detect which version you are using.

Good luck.

On Wed, Jul 4, 2018 at 8:17 AM, Mathieu Vinette via USRP-users 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

I’m trying to Build RFNOC on a new E310 purchased a few months ago and keep 
running into issues. I tried 2 different ways with no luck.

First way was using the guide on 
https://kb.ettus.com/Software_Development_on_the_E3xx_USRP_-_Building_RFNoC_UHD_/_GNU_Radio_/_gr-ettus_from_Source

And when executing the uhd_usrp_probe I get the following error:

root@ettus-e3xx-sg3:~/e310# uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 4.9.2; Boost_105700; 
UHD_4.0.0.rfnoc-devel-788-g1f8463cc
[INFO] [E300] Loading FPGA image: 
/home/root/e310/usr/share/uhd/images/usrp_e310_fpga_sg3.bit...
[INFO] [E300] FPGA image loaded
[INFO] [E300] Initializing core control (global registers)...

[INFO] [E300] Performing register loopback test...
[INFO] [E300] Register loopback test passed
Error: RuntimeError: Expected FPGA compatibility number 255.x, but got 17.0:
The FPGA build is not compatible with the host code build.
Please run:

"/usr/lib/uhd/utils/uhd_images_downloader.py"
root@ettus-e3xx-sg3:~/e310#

I did run the image downloader and still have the same issue.


My second try was using pyboms from the guide on  
https://kb.ettus.com/Software_Development_on_the_E310_and_E312
And here’s the error I’m getting from this process.

pybombs prefix init ~/prefix -R e3xx-rfnoc -a e300



PyBOMBS.install_manager - INFO - Phase 2: Recursively installing source 
packages to prefix:
PyBOMBS.install_manager - INFO - Installing package: gnuradio
PyBOMBS.PackageManager - WARNING - A source build for package gnuradio was 
requested, but binary install was found!
Install gnuradio from source despite binary install available Y/[N]? Y
PyBOMBS.Packager.source - WARNING - Build dir already exists: 
/home/matt/prefix/src/gnuradio/build
Configuring: (100%) 
[====================================================================================]
PyBOMBS.Packager.source - WARNING - Configuration failed. Re-trying with higher 
verbosity.
-- Build type not specified: defaulting to release.
-- Build type set to Release.
-- Extracting version information from git describe...
-- Compiler Version: arm-oe-linux-gnueabi-gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Compiler Flags: 
/home/matt/prefix/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc:::-O3
 -DNDEBUG  -O2 -pipe -g -feliminate-unused-debug-types -std=gnu99 
-fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
/home/matt/prefix/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++:::-O3
 -DNDEBUG  -O2 -pipe -g -feliminate-unused-debug-types -fvisibility=hidden 
-Wsign-compare -Wall -Wno-uninitialized
-- ADDING PERF COUNTERS
-- Building Static Libraries: OFF
-- Boost version: 1.57.0
-- Found the following Boost libraries:
--   date_time
--   program_options
--   filesystem
--   system
--   regex
--   thread
--
-- Checking for module SWIG
-- Found SWIG version 3.0.2.
--
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
--
-- Configuring python-support support...
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Dependency SWIG_FOUND = TRUE
--   Dependency SWIG_VERSION_CHECK = TRUE
--   Enabling python-support support.
--   Override with -DENABLE_PYTHON=ON/OFF
--
-- Configuring testing-support support...
--   Dependency CPPUNIT_FOUND = TRUE
--   Enabling testing-support support.
--   Override with -DENABLE_TESTING=ON/OFF
--
-- Configuring VOLK support...
-- Build type set to Release.
-- Extracting version information from git describe...
--
-- Python checking for python >= 2.7
-- Python checking for python >= 2.7 - found
--
-- Python checking for mako >= 0.4.2
-- Python checking for mako >= 0.4.2 - found
--
-- Python checking for six - python 2 and 3 compatibility library
-- Python checking for six - python 2 and 3 compatibility library - not found
CMake Error at volk/CMakeLists.txt:93 (message):
  six - python 2 and 3 compatibility library required to build VOLK


-- Configuring incomplete, errors occurred!
See also "/home/matt/prefix/src/gnuradio/build/CMakeFiles/CMakeOutput.log".
PyBOMBS.Packager.source - ERROR - Configuration failed after running at least 
twice.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package 
gnuradio:
Configuration failed
PyBOMBS.install_manager - ERROR - Error installing package gnuradio. Aborting.


I must be doing something wrong.  Can someone help me with this build or point 
me in the right direction?  I’m new to this software radio world so any kind of 
direction would be greatly appreciated.

Thanks
Matt

_______________________________________________
USRP-users mailing list
[email protected]<mailto:[email protected]>
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to