Skip to content
Discussion options

You must be logged in to vote

ESP32-P4 has an internal voltage regulator (LDO) architecture that requires enabling the correct LDO channel before it's possible to access the SD card.

In MicroPython nightly builds (and the next release v1.29) the correct LDO channel is enabled automatically, so SDCard should work normally. (Details).

In MicroPython v1.28 we have support for the ESP32-P4 LDO but it's not automatically integrated with machine.SDCard() yet. You can work around it on MicroPython v1.28 like this:

import machine, esp32, vfs
ldo = esp32.LDO(4, 3300)

# then use the SDCard normally, i.e.
vfs.mount(machine.SDCard(), "/sd")

(The workaround may need to be removed after you update to MicroPython v1.29.)

Replies: 5 comments 6 replies

Comment options

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

Comment options

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

@projectgus
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

@EgeOnderX
Comment options

@projectgus
Comment options

Answer selected by EgeOnderX
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
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
5 participants