We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4c8a4 commit 3f62df6Copy full SHA for 3f62df6
libraries/MRI/src/boards/portenta-h7/DebugSerial.cpp
@@ -23,6 +23,10 @@ extern "C" {
23
#include <architectures/armv7-m/debug_cm3.h>
24
}
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
30
static const char g_memoryMapXml[] = "<?xml version=\"1.0\"?>"
31
"<!DOCTYPE memory-map PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\" \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"
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
179
180
void DebugSerial::initSerial() {
0 commit comments