Skip to content

ESP32 SDCard OSError: 16 #10581

Discussion options

You must be logged in to vote

My friend was giving me a TTGO-Koala Esp32 Board.
With MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32

tested the following code:

import os
import machine

sd = machine.SDCard(slot=2)
vfs=os.VfsFat(sd)
os.mount(vfs, "/sd")  # mount

fn = open('/sd/textsd.txt', 'w')
fn.write('some data')
fn.close()

os.listdir('/sd')    # list directory contents

works like a charm!


Thank you for your help and ideas. I think my ESP32 Dev Kit C V2 has a broken arm or leg... don't know. Time for a new one.

I close this discussion as solved, now.

Replies: 10 comments 18 replies

Comment options

You must be logged in to vote
2 replies
@engineertrooper
Comment options

@engineertrooper
Comment options

Comment options

You must be logged in to vote
5 replies
@engineertrooper
Comment options

@robert-hh
Comment options

@BNNorman
Comment options

@engineertrooper
Comment options

@engineertrooper
Comment options

Comment options

You must be logged in to vote
2 replies
@engineertrooper
Comment options

@robert-hh
Comment options

Comment options

You must be logged in to vote
3 replies
@engineertrooper
Comment options

@robert-hh
Comment options

@engineertrooper
Comment options

Comment options

You must be logged in to vote
1 reply
@engineertrooper
Comment options

Comment options

You must be logged in to vote
2 replies
@cafalchio
Comment options

@ADV1K
Comment options

Answer selected by engineertrooper
Comment options

You must be logged in to vote
1 reply
@BNNorman
Comment options

Comment options

You must be logged in to vote
1 reply
@ADV1K
Comment options

Comment options

You must be logged in to vote
1 reply
@lanxinwoaini
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
7 participants