aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e/fpga-downloader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/usrp_e/fpga-downloader.cc')
-rw-r--r--host/lib/usrp/usrp_e/fpga-downloader.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e/fpga-downloader.cc b/host/lib/usrp/usrp_e/fpga-downloader.cc
index b0d56e856..5fd2c8dd0 100644
--- a/host/lib/usrp/usrp_e/fpga-downloader.cc
+++ b/host/lib/usrp/usrp_e/fpga-downloader.cc
@@ -259,9 +259,15 @@ void usrp_e_load_fpga(const std::string &bin_file){
std::cout << "Loading FPGA image: " << bin_file << "... " << std::flush;
+ system("/sbin/rmmod usrp_e");
+
prepare_fpga_for_configuration(gpio_prog_b, gpio_init_b);
std::cout << "done = " << gpio_done.get_value() << std::endl;
send_file_to_fpga(bin_file, gpio_init_b, gpio_done);
+
+ system("/sbin/modprobe usrp_e");
+
}
+