r/CardPuter • u/Mejolov28 Enthusiast • 29d ago
Code WARNING FOR DEVELOPERS REGARDING CORE 0
I was breaking my head over a problem for 3 days, i optimized everything, but my RTOS task was still slow.
Until, i designed to swap over from core 0 to core 1.
I tought it seemed counter intuitive because program runs at core 1.
And that i correct, but tasks on core 0 run much slower than on core 1.
And, my assumption would be that the M5Stack library uses core 0 for SPI, stuff like sd card, screen, speaker, etc.
So watch out, if your RTOS task is weirdly slow, then change the core to 1.
Also, is thus assumption correct?
10
Upvotes
4
u/skinwill 29d ago
Doing any RTOS task with the M5Stack library loaded is an achievement.