Skip to content

sdcard esp32 does not work TTGO T8 V1.8 #4722

Closed
@newbie71

Description

@newbie71

Hi,

i am using a TTGO T8 V1.8 devboard which has an onboard card reader. i installed the newest micropyhton Version on the board.

The Board has on the bottom side following description:
SD
D2=12
D3=13
CMD=15
CLK=14
D0=2
D1=4

i used the following Code to use the SD-Card:

import machine, sdcard, os
from machine import Pin, SPI
spisd = machine.SPI(2, baudrate=10000000, polarity=0, phase=0, sck=machine.Pin(14), miso=machine.Pin(2), mosi=machine.Pin(15))
sd = sdcard.SDCard(spisd, machine.Pin(13))
vfs = os.VfsFat(sd)
os.mount(vfs, "/sd")

When the esp32 starts i get the following error:

WebREPL daemon started on ws://XXX.XXX.XXX.XXX:8266
Started webrepl in normal mode
I (8681) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (8681) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (8681) gpio: GPIO[14]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (8961) gpio: GPIO[15]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pullown: 0| Intr:0
I (8961) gpio: GPIO[2]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (8961) gpio: GPIO[14]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
Traceback (most recent call last):
File "main.py", line 6, in
OSError: [Errno 19] ENODEV
MicroPython v1.10 on 2019-01-25; ESP32 module with ESP32
Type "help()" for more information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions