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" {
2323 #include < architectures/armv7-m/debug_cm3.h>
2424}
2525
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+
2630static const char g_memoryMapXml[] = " <?xml version=\" 1.0\" ?>"
2731 " <!DOCTYPE memory-map PUBLIC \" +//IDN gnu.org//DTD GDB Memory Map V1.0//EN\" \" http://sourceware.org/gdb/gdb-memory-map.dtd\" >"
2832 " <memory-map>"
@@ -170,6 +174,7 @@ void DebugSerial::setSerialPriority(uint32_t priority) {
170174
171175void DebugSerial::_initSerial () {
172176 g_pDebugSerial->initSerial ();
177+ delay (STARTUP_DELAY_MSEC);
173178}
174179
175180void DebugSerial::initSerial () {
You can’t perform that action at this time.
0 commit comments