[Enhancement] Add ESP32 compatibility
Opened this issue · 4 comments
Could the library be updated with ESP32 support?
I am currently planing to use this library in an ESP32 based project, too.
So maybe i create a pull request, if there is something that needs to be changed in order to work with the ESP32.
For now i just take a quick view and think you just need to specify the SPI interface pins by calling the function: "void begin(int8_t sck=-1, int8_t miso=-1, int8_t mosi=-1, int8_t ss=-1)" from the SD-library before you actually call the function: "boolean SDConfigFile::begin(const char *configFileName, uint8_t maxLineLength)"
I think this should work, but maybe i am wrong.
If you are planing to use the ESP32´s native SD-MMC interface instead of SPI this wont work with the current library, because you have to use the "SD_MMC" library in this case.
Kind Regards
Danie
I haven't done much programming in the past year (learning clock repair). I'm pretty sure I have an ESP32 kicking around somewhere. When I dust it off I'll give it a try.
Thanks for the corrections,
Brad
I am currently planing to use this library in an ESP32 based project, too. So maybe i create a pull request, if there is something that needs to be changed in order to work with the ESP32.
For now i just take a quick view and think you just need to specify the SPI interface pins by calling the function: "void begin(int8_t sck=-1, int8_t miso=-1, int8_t mosi=-1, int8_t ss=-1)" from the SD-library before you actually call the function: "boolean SDConfigFile::begin(const char *configFileName, uint8_t maxLineLength)" I think this should work, but maybe i am wrong.
If you are planing to use the ESP32´s native SD-MMC interface instead of SPI this wont work with the current library, because you have to use the "SD_MMC" library in this case.
Kind Regards Danie
Hi ,
I am testing sdconfig on esp32s2 solo - and i can initialise the sd but gives an error when reading the example file. i tested the library on arduino and it work without flaws.
Have you done any tests or fixes so as to work on esp32 devices ?
Hi ,
I am testing sdconfig on esp32s2 solo - and i can initialise the sd but gives an error when reading the example file. i tested the library on arduino and it work without flaws.
Have you done any tests or fixes so as to work on esp32 devices ?