Skip to content

Add sample to demonstrate basic dual-core operation#2949

Merged
slaff merged 4 commits intoSmingHub:developfrom
mikee47:feature/esp32-dual-core-sample
Mar 31, 2025
Merged

Add sample to demonstrate basic dual-core operation#2949
slaff merged 4 commits intoSmingHub:developfrom
mikee47:feature/esp32-dual-core-sample

Conversation

@mikee47
Copy link
Copy Markdown
Contributor

@mikee47 mikee47 commented Mar 18, 2025

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.

@mikee47 mikee47 marked this pull request as draft March 18, 2025 12:54
@mikee47 mikee47 force-pushed the feature/esp32-dual-core-sample branch from 4616f35 to 45a181c Compare March 18, 2025 12:56
@SmingHub SmingHub deleted a comment from what-the-diff bot Mar 18, 2025
@slaff slaff added this to the 6.1.0 milestone Mar 18, 2025
@mikee47
Copy link
Copy Markdown
Contributor Author

mikee47 commented Mar 19, 2025

@profjmer Hopefuly this sample will be of use. Is there anything in particular you would like to see covered by this sample application?

@mikee47 mikee47 changed the title Esp32 dual-core sample Add sample to demonstrate basic dual-core operation Mar 20, 2025
@mikee47 mikee47 force-pushed the feature/esp32-dual-core-sample branch from d9e56b9 to 5f89d73 Compare March 20, 2025 10:09
@slaff
Copy link
Copy Markdown
Contributor

slaff commented Mar 31, 2025

@mikee47 do you plan to add something more to this PR?

@mikee47
Copy link
Copy Markdown
Contributor Author

mikee47 commented Mar 31, 2025

@slaff No, can merge it anytime thanks.

@mikee47 mikee47 marked this pull request as ready for review March 31, 2025 11:44
@slaff slaff merged commit c24d3b2 into SmingHub:develop Mar 31, 2025
35 checks passed
@slaff slaff mentioned this pull request Jun 27, 2025
5 tasks
@mikee47 mikee47 deleted the feature/esp32-dual-core-sample branch February 13, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants