Skip to content

ESP32-S3 FREERTOS DUAL CORE USE #8927

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

Closed
TGiles1998 opened this issue Jul 18, 2022 · 1 comment
Closed

ESP32-S3 FREERTOS DUAL CORE USE #8927

TGiles1998 opened this issue Jul 18, 2022 · 1 comment
Labels

Comments

@TGiles1998
Copy link

Hi,

I have been trying to enable the use of both cores for micropython on the ESP32-S3. I have read:

#4611
#4895
#8197
#7258

Is there a simple flag that I can place in the sdkconfig file to re-enable the use of both cores. I understand that I have to be careful about global variables and if both cores try to access the same one, issues are caused but it would be very useful to run simultaneous tasks on both cores at the same time.

Searching through the files I know that the I2S non blocking uses freertos to assign to a different core but I'm also not sure how this would be implemented.

Many thanks,

Thomas

@TGiles1998 TGiles1998 added the bug label Jul 18, 2022
@jimmo
Copy link
Member

jimmo commented Jul 19, 2022

Is there a simple flag that I can place in the sdkconfig file to re-enable the use of both cores.

Unfortunately there is not a simple flag.

I understand that I have to be careful about global variables and if both cores try to access the same one, issues are caused but it would be very useful to run simultaneous tasks on both cores at the same time.

The issue isn't about Python-level synchronisation as the GIL takes care of that, it's about how tasks are scheduled and interrupted by ISRs.

It would be good to solve this, and #4895 (comment) (and other discussion in that thread) is still useful to understand the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants