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

Enable FLASH_EEPROM_LEVELING by default for STM32F4 boards #17948

Merged

Conversation

sjasonsmith
Copy link
Contributor

Description

Enable FLASH_EEPROM_LEVELING by default for several boards.

Benefits

These boards use a 128kB flash sector to store 4kB of configuration settings. Erasing this sector takes about one second, and subjects the sector to unnecessary wear.

This change allows the sector to be erased only every 32rd time settings are stored.

I was going to submit this change along with #17946, but it mostly hides the problems that PR is improving. Testing that PR with FLASH_EEPROM_LEVELING enabled would reduce the frequency of errors by about 97%, so I moved it to a separate PR.

@thinkyhead thinkyhead added A: STM32 F: EEPROM PR: Improvement T: HAL & APIs Topic related to the HAL and internal APIs. labels May 11, 2020
@thinkyhead thinkyhead merged commit 4680aa6 into MarlinFirmware:bugfix-2.0.x May 11, 2020
@sjasonsmith sjasonsmith deleted the PR/STM32_Default_Leveling branch May 25, 2020 22:21
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request May 29, 2020
jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
njibhu pushed a commit to njibhu/Marlin that referenced this pull request Aug 24, 2020
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: STM32 F: EEPROM PR: Improvement T: HAL & APIs Topic related to the HAL and internal APIs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants