diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-11-21 00:02:41 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-11-21 00:02:41 +0100 |
commit | 3896348122aeecfddb0c8df4ec7db59aaab66e59 (patch) | |
tree | 38a82943254d58bc13e49f159bc3346e53810b7b /host | |
parent | 3aee117323edd28098efcb743b005e5efb67668a (diff) | |
download | uhd-3896348122aeecfddb0c8df4ec7db59aaab66e59.tar.gz uhd-3896348122aeecfddb0c8df4ec7db59aaab66e59.tar.bz2 uhd-3896348122aeecfddb0c8df4ec7db59aaab66e59.zip |
x300: Clarified FPGA compat error message
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index 5520cc82e..a879ae02d 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -1689,11 +1689,16 @@ void x300_impl::check_fpga_compat(const fs_path &mb_path, wb_iface::sptr iface) if (compat_major != X300_FPGA_COMPAT_MAJOR) { throw uhd::runtime_error(str(boost::format( - "Expected FPGA compatibility number 0x%x, but got 0x%x.%x:\n" - "The FPGA build is not compatible with the host code build.\n" - "%s" - ) % int(X300_FPGA_COMPAT_MAJOR) % compat_major % compat_minor - % print_images_error())); + "Expected FPGA compatibility number %d, but got %d:\n" + "The FPGA image on your device is not compatible with this host code build.\n" + "Download the appropriate FPGA images for this version of UHD.\n" + "%s\n\n" + "Then burn a new image to the on-board flash storage of your\n" + "USRP X3xx device using the burner utility. \n\n" + "For more information, refer to the UHD manual:\n\n" + " http://files.ettus.com/manual/page_usrp_x3x0.html#x3x0_flash" + ) % int(X300_FPGA_COMPAT_MAJOR) % compat_major + % print_images_error())); } _tree->create<std::string>(mb_path / "fpga_version").set(str(boost::format("%u.%u") % compat_major % compat_minor)); |