Skip to content

Fix ESP32 Arduino 3.x compilation errors and Z-axis missed step pulses#11

Closed
Copilot wants to merge 5 commits intomainfrom
copilot/fix-critical-section-errors
Closed

Fix ESP32 Arduino 3.x compilation errors and Z-axis missed step pulses#11
Copilot wants to merge 5 commits intomainfrom
copilot/fix-critical-section-errors

Conversation

Copy link

Copilot AI commented Feb 24, 2026

  • Fix Serial.cpp, Spindle_PWM.cpp, AnalogOutput.cpp, Stepper.cpp, Limits.cpp — ESP32 Arduino 3.x API changes
  • Fix Stepper_RMT.cpp — root cause of Z-axis incorrect movement:
    • Set RMT.apb_conf.fifo_mask = 1 in Initialize() to enable direct RMTMEM access (without this, RMTMEM writes route through the per-channel APB FIFO which is consumed on first TX, leaving nothing for subsequent steps)
    • Replace rmt_fill_tx_items with direct RMTMEM writes in Initialize()
    • Write items to RMTMEM fresh on every Step() call so data is always present regardless of FIFO state
    • Use _rmtItem[1].val = 0 (full-word zero) for the end marker
    • Add IRAM_ATTR to Step() (called from hardware timer ISR)
    • Move rmt_set_source_clk to after rmt_config

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: nsiatras <6023918+nsiatras@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix critical section errors in Serial.cpp Fix ESP32 Arduino 3.x (ESP-IDF 5.x) compilation errors Feb 24, 2026
Copilot AI requested a review from nsiatras February 24, 2026 15:53
… API

Co-authored-by: nsiatras <6023918+nsiatras@users.noreply.github.com>
Copilot AI changed the title Fix ESP32 Arduino 3.x (ESP-IDF 5.x) compilation errors Fix ESP32 Arduino 3.x / ESP-IDF 5.x compilation errors Feb 24, 2026
…flag

Co-authored-by: nsiatras <6023918+nsiatras@users.noreply.github.com>
Copilot AI changed the title Fix ESP32 Arduino 3.x / ESP-IDF 5.x compilation errors Fix ESP32 Arduino 3.x (ESP-IDF 5.x) build and runtime errors Feb 24, 2026
… writes

Co-authored-by: nsiatras <6023918+nsiatras@users.noreply.github.com>
Copilot AI changed the title Fix ESP32 Arduino 3.x (ESP-IDF 5.x) build and runtime errors Fix ESP32 Arduino 3.x compilation errors and Z-axis missed step pulses Feb 24, 2026
@nsiatras nsiatras closed this Feb 24, 2026
@nsiatras nsiatras deleted the copilot/fix-critical-section-errors branch February 24, 2026 17:12
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