Add sample to demonstrate basic dual-core operation#2949
Merged
slaff merged 4 commits intoSmingHub:developfrom Mar 31, 2025
Merged
Add sample to demonstrate basic dual-core operation#2949slaff merged 4 commits intoSmingHub:developfrom
slaff merged 4 commits intoSmingHub:developfrom
Conversation
4616f35 to
45a181c
Compare
Contributor
Author
|
@profjmer Hopefuly this sample will be of use. Is there anything in particular you would like to see covered by this sample application? |
d9e56b9 to
5f89d73
Compare
Contributor
|
@mikee47 do you plan to add something more to this PR? |
Contributor
Author
|
@slaff No, can merge it anytime thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a sample application to show how to run code on the second CPU of an ESP32, RP2040 and RP2350 devices.
Issue #2943 highlights the sort of problem which occurs with the ESP32 when attempting to use timers to run code very frequently, where the CPU time required to service an interrupt and get the code to run is too long. The problem is the overhead impose by FreeRTOS and the nature of multitasking.
A solution to this is to run time-sensitive code on the second CPU. Polled timers are a good choice here as they don't use interrupts at all.