Skip to content

SD card mount failed #8663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
zhekch opened this issue Sep 22, 2023 · 2 comments
Closed
1 task done

SD card mount failed #8663

zhekch opened this issue Sep 22, 2023 · 2 comments
Assignees
Labels
Resolution: Unable to reproduce With given information issue is unable to reproduce

Comments

@zhekch
Copy link

zhekch commented Sep 22, 2023

Board

ESP 32 dev module

Device Description

Plain module on breadboard with micro-sd card reader attached.

Hardware Configuration

MISO -> 19
MOSI -> 23
CS -> 5
SCK -> 18

Version

latest master (checkout manually)

IDE Name

Arduino IDE 2.2.1

Operating System

Mac OS 13.5

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

115200

Description

Trying to mount an SD card from esp32 fails.
Note, i read #6081, and tried all fixes described there but still did not achieve any positive results.

Sketch

Default SD card example

Debug Message

entry 0x400805f0
[    15][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[   535][W][sd_diskio.cpp:104] sdWait(): Wait Failed
[   535][W][sd_diskio.cpp:512] ff_sd_initialize(): sdWait fail ignored, card initialize continues
[   537][W][sd_diskio.cpp:180] sdCommand(): crc error
[   649][W][sd_diskio.cpp:174] sdCommand(): no token received
[  1249][W][sd_diskio.cpp:104] sdWait(): Wait Failed
[  1249][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[  1749][W][sd_diskio.cpp:104] sdWait(): Wait Failed
[  1749][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
[  1749][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x29
[  1753][W][sd_diskio.cpp:547] ff_sd_initialize(): APP_OP_COND failed: 255
[  1760][E][sd_diskio.cpp:805] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[  2269][W][sd_diskio.cpp:104] sdWait(): Wait Failed
[  2269][E][sd_diskio.cpp:126] sdSelectCard(): Select Failed
Card Mount Failed

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@zhekch zhekch added the Status: Awaiting triage Issue is waiting for triage label Sep 22, 2023
@lucasssvaz
Copy link
Collaborator

I've just tested it and everything is working as expected. Please make sure you are using the SD_Test example if you are using the SPI interface.

@lucasssvaz lucasssvaz added Resolution: Unable to reproduce With given information issue is unable to reproduce and removed Status: Awaiting triage Issue is waiting for triage labels Sep 29, 2023
@VojtechBartoska VojtechBartoska closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@ihsan728
Copy link

esp323
SD card mount failed,
why this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Unable to reproduce With given information issue is unable to reproduce
Projects
None yet
Development

No branches or pull requests

5 participants