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

QbasicJacky
Posts: 14
Joined: Mon Apr 10, 2023 3:52 am

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

Postby QbasicJacky » Wed Jun 04, 2025 11:40 pm

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);

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

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

Postby ahsrabrifat » Thu Jun 05, 2025 7:49 am

If you suspect the bootloader or other code resets the pin:

Code: Select all

gpio_hold_en(GPIO_NUM_21);

Who is online

Users browsing this forum: Applebot, Qwantbot and 3 guests