Page 1 of 1

esp32S3 mount TF card return errors 0x107,but run spi-lcd at first ,mount is ok

Posted: Wed Jun 04, 2025 11:40 pm
by QbasicJacky
hardware
tfcs pin2
lcdcs pin21
mosi pin11
clk pin12
miso pin13

ret = spi_bus_initialize(SPI2_HOST, &bus_cfg, SDSPI_DEFAULT_DMA);
lcd_init(); //if not run this code mount tf error 0x107
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);

Re: esp32S3 mount TF card return errors 0x107,but run spi-lcd at first ,mount is ok

Posted: Thu Jun 05, 2025 7:49 am
by ahsrabrifat
If you suspect the bootloader or other code resets the pin:

Code: Select all

gpio_hold_en(GPIO_NUM_21);