SD_MMC not working in pio

Okay, then let’s make sure that the build options which are pulled in for your board match those of the Arduino IDE.

Please compile & upload the following code in the Arduino IDE and PlatformIO, then post both outputs:

#include <Arduino.h>
#include "SD_MMC.h" 

void setup(){
  Serial.begin(115200);

  #ifdef BOARD_HAS_1BIT_SDMMC
  Serial.println("BOARD_HAS_1BIT_SDMMC enabled");
  #else
  Serial.println("BOARD_HAS_1BIT_SDMMC disabled");		
  #endif
  Serial.println("SDMMC_FREQ_DEFAULT: " + String(SDMMC_FREQ_DEFAULT));
}

void loop() { }

(might need to press reset after upload to see output because it’s in setup())

Because this topic reminds me of Platformio.ini esp32-gateway revision and SD_MMC returned 0x107.