Page 1 of 1

ESP32-PICO-D4 Custom PCB with SPI SD card issue

Posted: Fri Nov 11, 2022 2:54 pm
by BitsNBytes
Hi all,

I have been working on designing a PCB board for IoT usage and I am in a stage where all the peripherals and sensors work, except the micro-SD card reader. The board has the following sensors and modules connected in the respective pinout:
1. ATGM336H-5N31 - SD2, SD3
2. Ra-02 LoRa - SPI(IO5, IO18, IO23, IO19) + IO14, IO2
3. Buzzer - IO4
4. MPU6050 - I2C(IO21, IO22)
5. LED - IO12
6. MicroSD - SPI(IO18, IO19, IO23) + IO25 as CS

Below you can find the images of the MCU and MSD schematics. The thing is that I tried to use various MSD example codes with a FAT32 16GB MicroSDHC with no success in MSD mount. I double checked the PIN connection and passed them directly to the MSD constructors. I tried removing the Ra-02 from a board just to check if this SPI module is interfering in some way and it didn't work again (no MSD mount). Is there any detail that I missed during the MSD interface with the PICO D4? Any other ideas for debugging?

Thanks in advance.

Image
Image