martinberlin / epdiy-esp32-epub-reader

An ESP32 e-reader forked to focus on epdiy epaper controllers
https://fasani.de
MIT License
3 stars 1 forks source link

SD card issue on S3 #6

Closed martinberlin closed 1 year ago

martinberlin commented 2 years ago

Still could not make it work with the SD card.

Maybe also bad hardware since I got the cheapest microSD from Aliexpress...

IO PINS:

 ; setup the pins for the SDCard
 -DSD_CARD_PIN_NUM_CLK=GPIO_NUM_18
 -DSD_CARD_PIN_NUM_MOSI=GPIO_NUM_16
 -DSD_CARD_PIN_NUM_MISO=GPIO_NUM_14
 -DSD_CARD_PIN_NUM_CS=GPIO_NUM_9

Error in Serial

I (1899) SDC: Initializing SD card
I (1899) gpio: GPIO[9]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
I (1909) sdspi_transaction: cmd=52, R1 response: command not supported
I (1959) sdspi_transaction: cmd=5, R1 response: command not supported
E (2959) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (2959) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
I (2959) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
E (2969) SDC: Failed to initialize the card (ESP_ERR_TIMEOUT). Make sure SD card lines have pull-up resistors in place.
Jason2866 commented 2 years ago

Looks like a hardware problem. SD cards works fine on my S3 cam board (where it is factory mounted).

martinberlin commented 2 years ago

Yes I tried it externally and also does not work. Probably cheap hardware with some level shifters prepared only for 5 V like arduino boards… Looking around later for a new microSD. Thanks!

martinberlin commented 1 year ago

The issue was that 32 GB does not work. With a 16 GB SD works correctly