Skip to content
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

Issue with SD card #33

Open
odavlias opened this issue Aug 23, 2023 · 0 comments
Open

Issue with SD card #33

odavlias opened this issue Aug 23, 2023 · 0 comments

Comments

@odavlias
Copy link

Hello,

I'm using the ESP32 devkit which is mounted in a custom PCB I've designed. I'm developing using micropython and have an issue when trying to connect an SD card.

The setup is as follows:

An micro sd card adapter (not module) is connected to the appropriate sdmmc pins (slot 1 in 1-bit mode: sck: pin 14, cmd: pin 15, d0: pin 2). All three pins have external pull up resistors (10k) and I've put a decoupling 100nF between the SD 3.3 and ground.

When trying to execute the following:

import machine
import os

sd = machine.SDCard(slot=1, width=1)
os.mount(sd, "/sd")

I get: E (71080) sdmmc_sd: sdmmc_init_sd_scr: send_scr (1) returned 0x109

When I add the following line in the code (before the sd=... statement):

machine.Pin(2).init(-1, machine.Pin.PULL_UP)

I get: E (83920) sdmmc_sd: sdmmc_init_sd_scr: send_scr (1) returned 0x107

Does anyone have any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant