TTGOV2 SD card support

The SD card library fails to work on the [TTGOV2](https://github.com/LilyGO/TTGO-LORA32-V2.0) board.

User JamesGKent found a solution how to initialize the SD card:

What JamesGKent found is

… from my reading here SD cards can be used in 3 modes, one of which is SPI and the other two are SD specific. on AVRs the SPI mode is normally used because there is hardware built in for it, so it is faster that software emulating either of the other two modes. on the ESP it looks like we have the MMC hardware to use the other two modes natively.
I believe those other two modes (particularly the 4 bit mode) should be faster than SPI, however for you it seems that this didn’t work.
when using the SD_MMC lib the 4 bit is the default unless the board definition says only 1 bit mode is available, so the default didn’t work, my suggestion of using begin("/sdcard", true); should have activated 1 bit mode, which also didn’t work. so my last suggestion using the normal SD lib is using SPI, but configuring the pins of the SPI interface onto the pins normally used by MMC.

Loading...
Facebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Leave a Reply

Your email address will not be published. Required fields are marked *

Free Link Directory