Replies: 1 comment
-
From the arduino pico library examples. Seems to work. // Demonstrates a simple use of the setup1()/loop1() functions // Will output something like, where C0 is running on core 0 and // 11:23:07.507 -> C0: Blue leader standing by... // Released to the public domain // The normal, core0 setup void loop() { // Running on core1 void loop1() { |
Beta Was this translation helpful? Give feedback.
-
Hi,
I wanted to manually lauch core1 with the SDK function
multicore_launch_core1(loop_core1);
I do this at the end of setup();
void loop_core1() { //_hwsensors.Loop(); delay(200); digitalWrite(10, HIGH); delay(200); digitalWrite(10, LOW); }
It does not work. It seems that loop_core1 is not executed.
when I rename loop_core1 to loop1 and do not lauch ot manually, it works.
Why does the manual launching not work? Any idea?
The reason I want to do this is that I want to setup everything first and then start the 2. core. If they are started simultaenusly i would have to add some sync.
edit: sorry, I just got it... I forgot the while(true)...
Beta Was this translation helpful? Give feedback.
All reactions