robdobsn / RBotFirmware

Robot Firmware for various geometries
MIT License
23 stars 26 forks source link

SD Card not Show #22

Open Bgrtksz opened 1 month ago

Bgrtksz commented 1 month ago

Hello, I am doing this project, but it does not use the SD card I used. The web interface shows the memory size as 1Mb. I did not make a different pin connection. I did not change the code. My pin connection is like this; “fileManager”: { “spiffsEnabled”: 1, “spiffsFormatIfCorrupt”: 1, “sdEnabled”: 1, “sdMOSI”: “18”, “sdMISO”: “19”, “sdCLK”: “5”, “sdCS”: “21” }, Can you help me solve the problem? Ekran Alıntısı

Bgrtksz commented 1 month ago

Hello, I am doing this project, but it does not use the SD card I used. The web interface shows the memory size as 1Mb. I did not make a different pin connection. I did not change the code. My pin connection is like this; “fileManager”: { “spiffsEnabled”: 1, “spiffsFormatIfCorrupt”: 1, “sdEnabled”: 1, “sdMOSI”: “18”, “sdMISO”: “19”, “sdCLK”: “5”, “sdCS”: “21” }, Can you help me solve the problem? Ekran Alıntısı

I found some information about the error.
In the serial monitor ; I: FileManager: setup SPIFFS partition size total 1013036, used 0 E (245) sdmmc_io: sdmmc_io_reset: unexpected return: 0x103 W: FileManager: installation failed to initialize SD (error ESP_ERR_INVALID_STATE)

noedger commented 1 month ago

Hi What size SD Card are you using. I know I battled the same way. The adalogger is verry specific in the cards used. I found a older 2 Gb card worked for me. If you did not change pins or code then just play arround with different cards.

Regards Deon

Bgrtksz commented 3 weeks ago

I solved the problem, the error code was as follows. "sdmmc_sd: sdmmc_check_scr: send_scr returned 0x107"

When I changed the "SDMMC_FREQ_DEFAULT=20000" value in sdmmc_types.h to "SDMMC_FREQ_DEFAULT=5000" it worked.

SD card format must be "FAT". I also solved the problem with reference here.

https://github.com/espressif/esp-idf/issues/2478