Hello to everyone. I am trying to add storage support to my project (based on a Esp32-devkit v1) using a Kingstone SDHC memory (4 Mbit/s) with a SPI card adapter and mounted in a breadboard. GPIOs line are as follow:
Esp32 Card adapter
GPIO_4 MISO
GPIO_15 MOSI
GPIO_14 CLK
GPIO_13 CS
3V3 Vin (I also bypassed adapter regulator and feed 3V3 directly)
GND GND
All four data lines have 10K pull-up resistors.
esp-idf commit is ee882708, and even this is far away from master (indeed is v4.4), is required because project can not compile with master due to an error in and non required component (but that is another story). Before trying to ad sd support, project was running smoothly.
Several issues arose when initializing card:
It correctly detects version of standard (i.e. version 2), but misdetect card as SDSC instead SDHC (I track this problem to sdmmc_init_ocr() function).
A time-out in sdmmc_init_sd_scr()
A call to sdmmc_print_card_info() returns incorrect info:
Name: 16���
Type: SDSC
Speed: 20 MHz
Size: 243MB
I tried this very same SD card and the very same card adapter in the arduino SD card_info example project, and detects shows correct card info, also try card in an USB adapter in my ubuntu box that shows correct size.
Thanks for your support.
ESP32 SD card in SPI mode issues
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Google [Bot], mubeenkhalid007 and 298 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.