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

Fixes #16672 SDIO read errors #18223

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

rhapsodyv
Copy link
Sponsor Member

Description

Some boards have problems with SDIO_CLOCK and READ Retries, getting SD Read Errors very frequently (Chitu boards, for example). The original code have hardcoded values.

Benefits

This PR just add the ability the user or the board define their on SDIO_CLOCK and READ Retries. Now Marlin can have board with different setups, yet maintaining the compatibility with the actual code.

We are using this in a future PR that will support the TronXY Chitu Boards.

Thanks.

Related Issues

#16672

rhapsodyv and others added 3 commits June 7, 2020 19:12
…_READ_RETRIES and SDIO_CLOCK, fixing SD Error problems on some user boards.
@zillarob
Copy link

zillarob commented Jun 8, 2020

Is this intended to let us define sdio clock in the pins file if needed?
Been playing with a Robin nano and knocking it down def seemed to help.

@thinkyhead
Copy link
Member

Yes. With the changes here you will be able set your own SDIO_CLOCK and/or SDIO_READ_RETRIES in the pins file or the config files.

@thinkyhead thinkyhead added PR: Improvement T: HAL & APIs Topic related to the HAL and internal APIs. A: STM32 C: Configuration labels Jun 8, 2020
@thinkyhead thinkyhead merged commit 215b400 into MarlinFirmware:bugfix-2.0.x Jun 8, 2020
jmp0x0000 pushed a commit to jmp0x0000/Marlin that referenced this pull request Aug 7, 2020
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
@rhapsodyv rhapsodyv deleted the fixes-16672 branch October 25, 2020 00:30
HairingX pushed a commit to HairingX/Marlin that referenced this pull request Jun 16, 2021
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: STM32 C: Configuration 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.

None yet

3 participants