Useful or not, from you.
Marlin [2.0.X] BigTreeTech SKR 1.3 SDCard not initializing from LCD


The SD card reader does not initialize when in stand-alone mode and calling menu item 'Init. SD card'.

Steps to Reproduce

  1. A BigTreeTech SKR 1.3 board
  2. Default configuration.h and configuration_adv.h
  3. Enable #define SDSUPPORT in configuration.h

Expected behavior: A working SD card reader in both stand-alone mode (no USB connected) as well as in USB connected mode

Actual behavior:

  • Cardreader is available as a drive when connected via USB to PC.
  • Initialization fails when calling menu item "Init. SD card"
That's a useful answer
Without any help

If you are using (and sharing) the onboard SD card reader then the SD detect state really should make no difference (and never has done until now), as the SD detect pin is disabled in this case (see the pins file Are you sure that the change to SD_DETECT_INVERTING is actually required if the other settings you have changed are also made?

The default configuration for this board is to use the SD card reader that is part of many LCD displays. Personally I don't think that this is correct, but that is the way it currently is (and will probably not change), other LPC176x boards default to use the onboard reader (which I think is the most sensible default).

However if you are using a recent version of Marlin it seems that some recent changes to the way that the SD card is initialised may have broken the SD card sharing code... I'm about to start investigating what is happening in this case...