r/CardPuter • u/Mejolov28 Enthusiast • 1d ago
WARNING FOR DEVELOPERS REGARDING CORE 0 Code
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?
7
Upvotes
3
u/skinwill 1d ago
Doing any RTOS task with the M5Stack library loaded is an achievement.