aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/usrp2p/udp_fw_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/microblaze/usrp2p/udp_fw_update.c')
-rw-r--r--firmware/microblaze/usrp2p/udp_fw_update.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/microblaze/usrp2p/udp_fw_update.c b/firmware/microblaze/usrp2p/udp_fw_update.c
index 9242242e7..55c206b1b 100644
--- a/firmware/microblaze/usrp2p/udp_fw_update.c
+++ b/firmware/microblaze/usrp2p/udp_fw_update.c
@@ -26,6 +26,7 @@
#include <string.h>
#include "ethernet.h"
#include "udp_fw_update.h"
+#include "xilinx_s3_icap.h"
//Firmware update packet handler
void handle_udp_fw_update_packet(struct socket_address src, struct socket_address dst,
@@ -94,6 +95,7 @@ void handle_udp_fw_update_packet(struct socket_address src, struct socket_addres
//should reset via icap_reload_fpga(uint32_t flash_address);
update_data_out.id = USRP2_FW_UPDATE_ID_RESETTIN_TEH_COMPUTORZ_OMG;
//you should note that if you get a reply packet to this the reset has obviously failed
+ icap_reload_fpga(0);
break;
// case USRP2_FW_UPDATE_ID_KTHXBAI: //see ya