ESP32-SD CARD

Divya_y
Posts: 7
Joined: Fri Apr 16, 2021 11:40 am

ESP32-SD CARD

Postby Divya_y » Fri Apr 16, 2021 11:51 am

Hi everyone, i am using esp32, in this the VSPI we are using for DAC and SD CARD, when CS (GPIO2 PIN) is high, gets access to SD CARD and when it goes low, gets access to DAC. Here the issue i am facing is, whenever i try to access DAC and then access SD CARD, i am getting error as "fmount mount failed"
Please can anyone suggest me the solution
Thank you in advance

pipi61
Posts: 56
Joined: Fri Dec 23, 2016 10:58 pm

Re: ESP32-SD CARD

Postby pipi61 » Sun Apr 18, 2021 10:09 am

use different pins for the cs

Divya_y
Posts: 7
Joined: Fri Apr 16, 2021 11:40 am

Re: ESP32-SD CARD

Postby Divya_y » Mon Apr 19, 2021 9:52 am

Hi,

Thanks for your feeback,

I want to make a correction of earlier statement as below,
We are using MUX to switch (GPIO2 PIN) between DAC and SD CARD.
when VSEL (GPIO2 PIN) is High SD CARD is active
when VSEL (GPIO2 PIN) is Low DAC is active

For Read/Write we are using GPIO5 PIN as CS

When DAC is accessed first & later we try to switch over to SD CARD we are getting error as "fmount failed"

i have also attached the block diagram for your reference.

Regards,
Divya
Attachments
DAC - SD CARD Selection.jpg
DAC - SD CARD Selection.jpg (41.34 KiB) Viewed 2873 times

pipi61
Posts: 56
Joined: Fri Dec 23, 2016 10:58 pm

Re: ESP32-SD CARD

Postby pipi61 » Sat Apr 24, 2021 10:09 pm

Hardware schematic?
what is VSEL ? https://randomnerdtutorials.com/esp32-p ... nce-gpios/
why not use gpio2 for SDCARD CS and GPIO5 for DAC CS?

Who is online

Users browsing this forum: No registered users and 63 guests