Skip to content

Commit fb05d96

Browse files
Add delay to 2nd core start for Picoprobe (#676)
No idea why, but when a Picoprobe upload and reset is used, the 2nd core does not start w/o a __wfe() call on the first one before launch. Fixes #674 Fixes #402
1 parent 8eb030e commit fb05d96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cores/rp2040/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ extern "C" int main() {
126126
if (!__isFreeRTOS) {
127127
if (setup1 || loop1) {
128128
rp2040.fifo.begin(2);
129-
multicore_launch_core1(main1);
130129
} else {
131130
rp2040.fifo.begin(1);
132131
}
@@ -135,6 +134,10 @@ extern "C" int main() {
135134
#endif
136135

137136
if (!__isFreeRTOS) {
137+
if (setup1 || loop1) {
138+
delay(1); // Needed to make Picoprobe upload start 2nd core
139+
multicore_launch_core1(main1);
140+
}
138141
setup();
139142
while (true) {
140143
loop();

0 commit comments

Comments
 (0)