Hi!
I'm one of the lucky who managed to get a hold of a brand new Arduino Nano RP2040 Connect on release day. Now, I've gotten around to test it out, and what I've noticed is that there are no concrete tutorials (yet?) for how to properly getting the multi-core functionality going. I've tried some small things here and there - importing <pico/multicore.h> works a bit - it compiles well and good, but it seem to freeze after running the branching function. The last thing that happens is one printout, and the led lighting up.
Is there anyone out there who've managed to getting this to work?
Adding my useless code as well.
#include <pico/multicore.h>
void loop1() {
while(true){
Serial.println("hello world 2");
delay(1000);
}
}
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
delay(5000);
multicore_launch_core1(loop1);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
}
void loop() {
while(true){
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}
}