Fix Xtensa ESP32 FreeRTOS build break from interrupt-priority macro mismatch#68
Draft
JohnAmadis with Copilot wants to merge 2 commits into
Draft
Fix Xtensa ESP32 FreeRTOS build break from interrupt-priority macro mismatch#68JohnAmadis with Copilot wants to merge 2 commits into
JohnAmadis with Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/choco-technologies/dmosi-freertos/sessions/10ce26d9-65d6-4472-86fb-629f19892263 Co-authored-by: JohnAmadis <17320783+JohnAmadis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix building issue for FreeRTOS on ESP
Fix Xtensa ESP32 FreeRTOS build break from interrupt-priority macro mismatch
May 15, 2026
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.
ESP32/Xtensa builds failed because
configMAX_SYSCALL_INTERRUPT_PRIORITYwas set to the generic fallback (0) inFreeRTOSConfig.hand later redefined by the Xtensa port, causing an inconsistent configuration path that surfaced as assembler errors inxtensa_context.S.Root cause alignment (Xtensa arch config)
config/arch/xtensa_esp32/FreeRTOSConfigArch.hto define Xtensa-required interrupt priority macros before the generic defaults apply.Macro definitions added
configMAX_SYSCALL_INTERRUPT_PRIORITY→XCHAL_EXCM_LEVELconfigMAX_API_CALL_INTERRUPT_PRIORITY→configMAX_SYSCALL_INTERRUPT_PRIORITYImpact
FreeRTOSConfig.hand the Xtensa port headers, eliminating the conflicting macro path that led to the build failure.