diff --git a/src/omv/usbdbg.c b/src/omv/usbdbg.c
index 5babe259d..f333e13b8 100644
--- a/src/omv/usbdbg.c
+++ b/src/omv/usbdbg.c
@@ -12,6 +12,7 @@
#include "framebuffer.h"
#include "ff.h"
#include "py/py_file.h"
+#include "core_cm4.h"
#include "usbdbg.h"
#define USB_TX_BUF_SIZE (64)
@@ -185,6 +186,10 @@ void usbdbg_control(void *buffer, uint8_t request, uint16_t length)
break;
}
+ case USBDBG_SYS_RESET:
+ NVIC_SystemReset();
+ break;
+
default: /* error */
cmd = USBDBG_NONE;
break;
diff --git a/src/omv/usbdbg.h b/src/omv/usbdbg.h
index 43beef9b5..8fda766e2 100644
--- a/src/omv/usbdbg.h
+++ b/src/omv/usbdbg.h
@@ -21,6 +21,7 @@ enum usbdbg_cmd {
USBDBG_DESCRIPTOR_SAVE,
USBDBG_ATTR_READ,
USBDBG_ATTR_WRITE,
+ USBDBG_SYS_RESET,
};
void usbdbg_init();
int usbdbg_script_ready();
diff --git a/usr/openmv-ide.glade b/usr/openmv-ide.glade
index 97403b762..7ce594521 100644
--- a/usr/openmv-ide.glade
+++ b/usr/openmv-ide.glade
@@ -452,6 +452,21 @@
True
+
+
+
+ False
+ True
+
+
-
-
-
- False
- True
-
-