ESP32-Wroom-32E-N8R2 SPI communication

I have interfaced an SD card reading module using SPI with the ESP32-WROOM-32E-N8R2 module. I am unable to detect the SD card and write data onto the SD card. I am using a generic code from the SD.h library example that is used to interface the SD Card.

Parallely, I have flashed the same code on a ESP32-Wroom-32E Devkit-V4 which has the 4MB flash storage. This setup worked fine when i connected the SD card reading module with the same pin connection as i did before, and it was able to detect and write data on the SD card.

Kindly advice if I am missing any point that is making the ESP32-WROOM-32E-N8R2 module unable to communicate with the SD card reading module using SPI.

Kindly ignore this problem as the main issue was with the Buffer IC on the custom pcb