Skip to content

Commit 210efe9

Browse files
committed
Bug fix, pull-up resistors incorrectly configured for SD mode on SD Card initialization
1 parent 28fe84f commit 210efe9

File tree

22 files changed

+2
-2
lines changed

22 files changed

+2
-2
lines changed

MicroPython_BUILD/components/micropython/extmod/vfs_native.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,13 +772,13 @@ static void _sdcard_mount()
772772
host.max_freq_khz = (sdcard_config.hispeed > 0) ? SDMMC_FREQ_HIGHSPEED : SDMMC_FREQ_DEFAULT;
773773
if (sdcard_config.mode == 2) {
774774
// Use 1-line SD mode
775-
_setPins(4, 12, -1, -1);
775+
_setPins(4, 12, 15, 13);
776776
host.flags = SDMMC_HOST_FLAG_1BIT;
777777
slot_config.width = 1;
778778
}
779779
else {
780780
// Use 4-line SD mode
781-
_setPins(2, 14, 15, 13);
781+
_setPins(4, 12, -1, -1);
782782
host.flags = SDMMC_HOST_FLAG_4BIT;
783783
slot_config.width = 4;
784784
}
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
-2 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
-6 Bytes
Binary file not shown.
-6 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)