sdspi example with adafruit 254 reader and sandisk 32G card pullups?

pelotron
Posts: 3
Joined: Fri Jan 27, 2023 2:17 pm

sdspi example with adafruit 254 reader and sandisk 32G card pullups?

Postby pelotron » Wed Jan 14, 2026 6:52 pm

Hello,

IDF version 5.5.2, adafruit id 254 breakout board for sd card, and a Sandisk UHS-I 32 G card,
formatted FAT32 with init on failure to mount set true.

I'm trying to add an sd card to a midi application running on an esp32s3DevkitC v1.1 board.
I'm trying to use the sdcard over spi and have used many gpio combinations, and several tf and
micro usb card readers, and cards. I'm currently
using Sandisk UHS-I 32G card with the following spi gpios.

MOSI 4
MISO 5
CLK 2
CS 8

I don't have any external pullups installed and have the following log fragment wherein a pullup test was
run.

I'm using idf 5.5.2 and I'm trying to get sdspi example working with no changes except 1 Mhz frequency
and some log messages.

In the following log the recovery time for the above is listed as about 88 cycles with weak puillups.

Does this mean I have to install 10K pullups on the MOSI, MISO, CLK and CS on the breakout
sdcard boars.

Thanks
f


^[[1;31mE (419) sdmmc_sd: sdmmc_init_spi_crc: sdmmc_send_cmd_crc_on_off returned 0x106^[[0m^M
^[[1;31mE (429) vfs_fat_sdmmc: sdmmc_card_init failed (0x106).^[[0m^M
^[[0;32mI (429) vfs_fat_sdmmc: dln - err return from esp_err_t esp_vfs_fat_sdspi_mount...^[[0m^M
^[[1;31mE (439) sdspi: Failed to initialize the card (Error = ESP_ERR_NOT_SUPPORTED). Make sure SD card lines have pull-up resistors in place.^[[0m^M
^[[0;32mI (449) SD_TEST: Testing SD pin connections and pullup strength^[[0m^M
^M
**** PIN recovery time ****^M
^M
PIN 2 CLK 10013 cycles^M
PIN 4 MOSI 10027 cycles^M
PIN 5 MISO 1377 cycles^M
PIN 8 CS 10027 cycles^M
^M
**** PIN recovery time with weak pullup ****^M
^M
PIN 2 CLK 88 cycles^M
PIN 4 MOSI 88 cycles^M
PIN 5 MISO 88 cycles^M
PIN 8 CS 88 cycles^M
^[[0;32mI (479) main_task: Returned from app_main()^[[0m^M

mikemoy
Posts: 687
Joined: Fri Jan 12, 2018 9:10 pm

Re: sdspi example with adafruit 254 reader and sandisk 32G card pullups?

Postby mikemoy » Sat Jan 17, 2026 12:17 pm

you should just look at schematics from dev kits. All the ones I have seen have pullups.
Screenshot 2026-01-17 061651.png
Screenshot 2026-01-17 061651.png (59.86 KiB) Viewed 261 times

pelotron
Posts: 3
Joined: Fri Jan 27, 2023 2:17 pm

Re: sdspi example with adafruit 254 reader and sandisk 32G card pullups?

Postby pelotron » Sat Jan 17, 2026 3:01 pm

Thanks very much for the schematic example. Good idea looking at boards with sd card included.
Regards,
p

Who is online

Users browsing this forum: ChatGPT-User, PerplexityBot and 8 guests