Unverified Commit fb05d969 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

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
parent 8eb030ed
...@@ -126,7 +126,6 @@ extern "C" int main() { ...@@ -126,7 +126,6 @@ extern "C" int main() {
if (!__isFreeRTOS) { if (!__isFreeRTOS) {
if (setup1 || loop1) { if (setup1 || loop1) {
rp2040.fifo.begin(2); rp2040.fifo.begin(2);
multicore_launch_core1(main1);
} else { } else {
rp2040.fifo.begin(1); rp2040.fifo.begin(1);
} }
...@@ -135,6 +134,10 @@ extern "C" int main() { ...@@ -135,6 +134,10 @@ extern "C" int main() {
#endif #endif
if (!__isFreeRTOS) { if (!__isFreeRTOS) {
if (setup1 || loop1) {
delay(1); // Needed to make Picoprobe upload start 2nd core
multicore_launch_core1(main1);
}
setup(); setup();
while (true) { while (true) {
loop(); loop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment