diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2013-09-10 17:44:45 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-09-10 17:44:45 -0700 |
commit | 0159006c4f3ecc39ec2566e96502c423c2de2a8f (patch) | |
tree | fd65164cfcd4edd6fd5a586a56114470f503a9ad /host/lib/usrp/b200/b200_impl.cpp | |
parent | 0184989a5f716d99435409279ce5cd1f78d98544 (diff) | |
download | uhd-0159006c4f3ecc39ec2566e96502c423c2de2a8f.tar.gz uhd-0159006c4f3ecc39ec2566e96502c423c2de2a8f.tar.bz2 uhd-0159006c4f3ecc39ec2566e96502c423c2de2a8f.zip |
b200: firmware update changed for FPGA load work
Diffstat (limited to 'host/lib/usrp/b200/b200_impl.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 09c0d3979..1ac5c55fa 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -205,7 +205,7 @@ b200_impl::b200_impl(const device_addr_t &device_addr) product_name = "B210"; default_file_name = B210_FPGA_FILE_NAME; break; - default: throw uhd::runtime_error("b200 unknown product code: " + mb_eeprom["product"]); + default: UHD_MSG(error) << "B200 unknown product code: " << mb_eeprom["product"] << std::endl; } } if (default_file_name.empty()) @@ -218,7 +218,12 @@ b200_impl::b200_impl(const device_addr_t &device_addr) device_addr.has_key("fpga")? device_addr["fpga"] : default_file_name ); - _iface->load_fpga(b200_fpga_image); + boost::uint32_t status = _iface->load_fpga(b200_fpga_image); + + if(status != 0) { + throw uhd::runtime_error(str(boost::format("fx3 is in state %1%") % status)); + } + _iface->reset_gpif(); //////////////////////////////////////////////////////////////////// |