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: 11 comments 20 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
3 replies
@lanxinwoaini
Comment options

@projectgus
Comment options

@engineertrooper
Comment options

Comment options

You must be logged in to vote
0 replies
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy