File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
libraries/MRI/src/boards/portenta-h7 Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ extern "C" {
23
23
#include < architectures/armv7-m/debug_cm3.h>
24
24
}
25
25
26
+
27
+ // The number of milliseconds to pause at the beginning of setup() to give time for host to enumerate USB device.
28
+ #define STARTUP_DELAY_MSEC 250
29
+
26
30
static const char g_memoryMapXml[] = " <?xml version=\" 1.0\" ?>"
27
31
" <!DOCTYPE memory-map PUBLIC \" +//IDN gnu.org//DTD GDB Memory Map V1.0//EN\" \" http://sourceware.org/gdb/gdb-memory-map.dtd\" >"
28
32
" <memory-map>"
@@ -170,6 +174,7 @@ void DebugSerial::setSerialPriority(uint32_t priority) {
170
174
171
175
void DebugSerial::_initSerial () {
172
176
g_pDebugSerial->initSerial ();
177
+ delay (STARTUP_DELAY_MSEC);
173
178
}
174
179
175
180
void DebugSerial::initSerial () {
You can’t perform that action at this time.
0 commit comments