How to use the second core of the rp2040?

Can anybody point me out to the guides on how to use the second core of the rp2040 boards? I seem to be having trouble for looking for guides for it.

Goto [Raspberry Pi Pico SDK: API Documentation and search for "pico_multicore"

1 Like

But isnt that the raspberry way of doing it?

What im looking for is the arduino way of doing it. Arduino has some dual core boards and i seem to cant find multicore example sketches

Im using the official Arduino MBED OS by the way

1 Like

It still works for me using Arduino. I just installed the library. you will have to look out for some things though it won't take delay(ms) it will take sleep_ms(ms) the delay will make the whole chip so the other core crash as well. And it crashes as well when you for example try to use Serial in the second core (Generally Speaking no Method of an object can be called without crashing it somehow). I am currently figuring that out. This is an example of a blink: on the second Core:

void loop1() {
digitalWrite(LED_BUILTIN, HIGH);
sleep_ms(500);
digitalWrite(LED_BUILTIN, LOW);
sleep_ms(500);
}

void setup() {
pinMode(LED_BUILTIN, OUTPUT);
sleep_ms(5000);
multicore_launch_core1(loop1);
}

void loop() {
//Nothing on Core 0
}

Adition you will have to put everything you want to be looped in loop1 in a while(true) { } loop