Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning for PRINTCOUNTER_SAVE_INTERVAL on ESP32 I2S expander #1

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

HoverClub
Copy link
Owner

Description

Add warning if PRINTCOUNTER_SAVE_INTERVAL is enabled (>0) on an ESP32 board with an I2S expander.

Erasing flash (emulating EEPROM) on an ESP32 takes quite a long time and, if carried out during printing can result in missed steps and layer shifts. Not absolutely certain but I think the I2S expander DMA buffers are underflowing as all code execution stops during a flash erase (buffers are swapped/filled by an interrupt and a separate task both of which will stall during the flash erase).

If flash updates are carried out when not printing the same stalling occurs BUT even if the continuously running I2S was to undeflow the hardware just re-sends the last word in the buffer when empty (and, 32mSec max. after a print has stopped) that will be the inactive state for any stepper drives).

Requirements

Any ESP32 board with an I2S expander.

Benefits

Prevents missed steps/ layer shifts

Related Issues

MarlinFirmware#24753
MarlinFirmware#24731

@HoverClub HoverClub merged commit 8615932 into bugfix-2.1.x Mar 16, 2023
@HoverClub HoverClub deleted the HoverClub-printcount branch March 17, 2024 15:17
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