Skip to content

Commit b8d92f9

Browse files
authored
Merge pull request #10947 from mikeysklar/patch-1
docs(sdcardio): clarify SD-first init rule for boards with floating C…
2 parents a223267 + 1a85bc6 commit b8d92f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shared-bindings/sdcardio/SDCard.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
//| Failure to do so can prevent the SD card from being recognized until it is
4444
//| powered off or re-inserted.
4545
//|
46+
//| Exception: on boards where another SPI peripheral has a floating CS
47+
//| pin with no hardware pull-up (such as the Feather RP2040 RFM), that
48+
//| peripheral's CS must be driven HIGH before SD card initialization.
49+
//| Failure to do so will corrupt the SPI bus during SD card init. In
50+
//| these cases, initialize and drive the other peripheral's CS high
51+
//| first, then initialize the SD card.
52+
//|
4653
//| Example usage:
4754
//|
4855
//| .. code-block:: python

0 commit comments

Comments
 (0)