Waveshare ESP32-P4-ETH and SD card interface

I am developing a project using the Waveshare ESP32-P4-ETH board and need to use the SD Card. I have tried the standard SD and SDMMC libraries with all suggested combinations of IO pins for the interface, but all I get in the monitor is SD Card not found

Is there anyone out there who would be willing to share a working sketch for this board and SD interface, please?

Thanks

Have you tried the library example sketches?

@chrissaich If you select ESP32P4 Dev Module from the boards manager there should be an example for that particular board.

File -> Examples -> Examples for ESP32P4 Dev Module -> SD_MMC -> SDMMC_Test

That example should run without any modification.

As I said you should not have to alter anything in the demo but here is some additional info that is taken care of in the example but handy for future use or just to study.

The #4 LDO should be initialized to provide 3.3v
Pin 45 should be held LOW to switch Q1 and pass the 3.3v to the SD card
SD clk is Pin 43
SD cmd is Pin 44
SD d0 is Pin 39
SD d1 is Pin 40
SD d2 is Pin 41
SD d3 is Pin 42

This info is visible on the schematic

Thanks for your help; the standard SDMMC_Test example now works without modification.

I don't know what I did to prevent it working previously!