|
|
|
|
|
by spookthesunset
1236 days ago
|
|
How does dual core work on these microcontrollers? Do you have to deal with scheduling between both cores or is it magic? It would seem that it would be up to me to figure out which CPU something should run on, right? So if you aren’t doing a workload that requires it, is there a point? Or does it use one of the cores to offload managing networks, Bluetooth’s and whatnot? |
|
As long as you don't create too many long-running tasks and be mindful of which core is running what, it's been incredibly reliable in my experience.
My biggest use case for this is keeping an active display, like those 64x64 RGB LED Panels, fed with pixel data from a display buffer using one core fully pegged to the task, then using the second core for wifi and display buffer updates. In Arduino land, since loop runs on a specific core, you can basically put your 'constantly running code' in the loop, and schedule the tasks to run on the other core in setup().