HMI Advance esp32-P4 series product
Access to the SD card reader by the tutorial method is successful but access through the SD_MMC library gives this error:
[ 7][I][esp32-hal-psram.c:104] psramAddToHeap(): PSRAM added to the heap.
E (214) sdmmc_periph: sdmmc_host_init_slot: Invalid GPIO number -1, returned 0x102
E (215) vfs_fat_sdmmc: slot init failed (0x102).
[ 221][E][SD_MMC.cpp:305] begin(): Failed to initialize the card (0x102). Make sure SD card lines have pull-up resistors in place.
Card Mount Failed
Is this a known issues or is my board defective?
Comments
Update:
Forced the: CrowPanel Advanced 10.1inch ESP32-P4 HMI AI Display board to work with the SD_MMC library by commenting out the logic for other boards & configuration options, and then hard coding the configuration pin numbers/values for the board. Now its just a matter of uncommenting them one by one & testing if it still works after the uncommenting until it trips up again.
HI, nickp,
Sorry, we need some time to analyze the issue you mentioned. We will get back to you as soon as possible. Please wait for a while.
We apologize for any inconvenience this may cause.
Thanks!
Warm regards,
HI, nickp,
May I ask: what development platform are you using? Is it IDF or Arduino? Also, are you using the code we provided? Furthermore, please provide any related settings/configurations.
Thanks!
Warm regards,
Hello, thank you for your reply. I sincerely apologies for the tardy response. This thread is for the CrowPanel Advanced 10.1 inch ESP32-P4 HMI AI Display 1024x600 IPS Touch Screen WiFi 6 SKU: DHE04310D.
I am using Arduino IDE version 2.3.8 and the recommended board version 3.3.3.
I modified the SD_MMC library included in the board v3.3.3 located in C:\Users\A_USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.3\libraries\SD_MMC\src\SD_MMC.cpp -because it would not compile. It successfully compile in Arduino IDE only after commenting out some of the options for esp32-p4 & hardcoding the io pins into the code just to make sure it matched with the development board's io pins.
If I recall correctly the modifications I made in the attatched file start on line 186 in SD_MMC.cpp file. (Renamed to *.txt to attach.)
Dear nickp,
Hope you are doing well. Thank you for your support of us.
We apologize for the inconvenience. We need some time to analyze your issue and will get back to you as soon as possible. Please wait a moment.
We apologize for the inconvenience again.
Thanks!
Warm regards,
Dear nickp,
If you are using our sample programs and encounter compilation or runtime errors, you can contact us for assistance.
If it's your own program, you will need to troubleshoot it yourself. I am sorry, we generally only provide technical support for hardware and our sample programs.
Furthermore, we generally recommend that customers use our sample programs first and then modify it to implement their desired functionality. This is faster and more convenient.

here is a related sample program:
https://www.elecrow.com/download/product/DHE04310D/Arduino_User_Lessons_for_CrowPanel_Advanced_10.1inch_ESP32-P4_HMI.pdf
Sorry for the inconvenience.
Warm regards,