Fatfs partition not recognized in ESP32 #9152
-
Hello I'm trying to mount a FATFS filesystem in an ESP32, I generate the binary and upload it to the vfs partition but if I try to do a simple mp_vfs_stat I keep receiving Isn't the vfs partition mounted in root fs at startup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The NLR jump failed shouldn't be possible no matter what you're doing, so it sounds like you're definitely hitting a bug somewhere if you're only using Python. I'm a little bit unsure what you mean though. What does "generate the binary and upload it to the vfs partition". Are you generating a FAT filesystem and then using esptool to write it to the correct offset in flash?
Yes. See https://github.com/micropython/micropython/blob/master/ports/esp32/modules/_boot.py -- the flashbdev.py uses
Frozen files are not in an ESP32 partition. Rather they're part of the application code (the freezing process turns it into a .c file which is compiled and linked). |
Beta Was this translation helpful? Give feedback.
The NLR jump failed shouldn't be possible no matter what you're doing, so it sounds like you're definitely hitting a bug somewhere if you're only using Python.
I'm a little bit unsure what you mean though. What does "generate the binary and upload it to the vfs partition". Are you generating a FAT filesystem and then using esptool to write it to the correct offset in flash?
mp_vfs_stat
would suggest that you're writing something in C. So I think we need more info -- where are you calli…