New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use The ESP32 second core? #8197
Comments
I'm sorry but did not get your point. I have a time critical process and wish to run it in the second core so I can handle sec events. Thank you |
You can´t do it in micropython itself but you can configure other FreeRTOS tasks and set the core there. Then you would communicate between your new tasks and a module in micropython. For example the machine_i2s implementation has a non-blocking mode where a new FreeRTOS task is created and runs beside micropython and uses a queue to send data back into micropython. micropython/ports/esp32/machine_i2s.c Line 593 in fbd47fc
In this case the helper task is running on the same core but that MP_TASK_COREID can be changed to refer to the other core. |
…-s3-box-psram 8.2.x backport: Fix PSRAM on espressif ESP32S3 box and box lite
Is it possible to attach a function to a second core to handle critical conditions?
The text was updated successfully, but these errors were encountered: