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

Fix for mount not initialized SD card #19064

Merged
merged 16 commits into from
Aug 19, 2020

Conversation

Serhiy-K
Copy link
Contributor

Description

I have two test boards - based on LPC1768 and on STM32F401. My SD card 2GB works good with LPC, but with STM not - after inserting SD card LCD panel hangs up until I remove SD card. In my case problem located somewhere in low level STM library. I tried find this problem with step-by-step debugging and oscilloscope but I haven't found yet.

In any case, problem with init SD card may happen any time. So we don't need enter to cdroot() function after wrong SD init and need inform user about problem with his SD card.

Benefits

This fix excludes panel hang by bypassing cdroot() function after wrong SD init and informs user about problem with SD card on panel in status line.

@thinkyhead thinkyhead merged commit 60b61de into MarlinFirmware:bugfix-2.0.x Aug 19, 2020
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Aug 20, 2020
@thisiskeithb
Copy link
Member

Marlin now errors out on boot without an SD card inserted. Is there a way to not display the error message on boot?

albertogg pushed a commit to albertogg/Marlin that referenced this pull request Aug 31, 2020
@thisiskeithb
Copy link
Member

thisiskeithb commented Aug 31, 2020

@Serhiy-K / @thinkyhead: Can this be disabled on boot? I've seen users report this issue of "SD Init Fail" across several Facebook groups now when (intentionally) booting without an SD card inserted which is causing confusion.

@JaysenSingh
Copy link

@Serhiy-K/@thinkyhead: I’m having the same issue too. Is there any fix for this.

@thisiskeithb
Copy link
Member

thisiskeithb commented Sep 2, 2020

This is still an issue: #19226 (comment)

SD card access/printing worked fine before this change on several different configs, but now users are presented with this false error on boot which doesn't make sense.

Should this patch be reverted?

vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
kageurufu pushed a commit to CR30-Users/Marlin-CR30 that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants