SD.h vs SD_MMC.h

PierrC
Posts: 1
Joined: Sat Jun 30, 2018 1:42 am

SD.h vs SD_MMC.h

Postby PierrC » Sat Jun 30, 2018 2:28 am

Hello,

I'm currently looking to update my device using a file I have stored on my SD card. I am currently using SD.h to manage my files on my SD card.
When I try to update the firmware using Update.h by inputting a SDLib::File of the firmware it does not work. I get a return false when it came to the ESP_IMAGE_HEADER_MAGIC. I'm not sure why as the file I'm opening is "correct".
When I looked at the example provided by espressif in the library, I saw they were using SD_MMS.h instead of SD.h. I wasn't able to make it work.

E (96) sdmmc_cmd: sdmmc_card_init: send_if_cond (1) returned 0x108
[E][SD_MMC.cpp:68] begin(): Failed to initialize the card (264). Make sure SD card lines have pull-up resistors in place.
Card Mount Failed

So my question is why was SD_MMS.h used instead of SD.h? and is SD_MMS.h the correct library to use to perform an update?

Thank you for your time.

Who is online

Users browsing this forum: grtschnk and 35 guests