Skip to content

fix(serial): move serial command handler to PRO_CPU (core 0)#2562

Open
r13xr13 wants to merge 1 commit into
BruceDevices:mainfrom
r13xr13:fix/serial-commands-core0
Open

fix(serial): move serial command handler to PRO_CPU (core 0)#2562
r13xr13 wants to merge 1 commit into
BruceDevices:mainfrom
r13xr13:fix/serial-commands-core0

Conversation

@r13xr13

@r13xr13 r13xr13 commented Jun 18, 2026

Copy link
Copy Markdown

Summary

On dual-core ESP32 (all Xtensa chips), the serial command handler task was pinned to core 1, which is the Arduino UI loop core. Processing serial commands on the UI core causes input stutter when commands take more than a few ms.

Moved the task to core 0 (PRO_CPU), keeping background serial processing off the UI thread.

Changes

  • serialcmds.cpp: Change task affinity from core 1 to core 0 on dual-core chips
  • Single-line change under #if SOC_CPU_CORES_NUM > 1

On dual-core ESP32, the serial command handler task was pinned to core 1 which is the Arduino UI core. Moving it to core 0 (PRO_CPU) keeps background processing off the UI core, preventing input stutter during serial command execution.
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.

1 participant