ENODEV error when creating files after building custom MicroPython OTA firmware #18131
-
|
Hi, I’ve built a custom MicroPython firmware for ESP32-S3 (16 MB flash) with OTA support. After flashing, when I try to create or write files on the device, I get: OSError: [Errno 19] ENODEV Thonny also reports: Exception while handling 'write_file' (OSError: Could not open file /test.py for writing) The firmware build was done using the latest ESP-IDF, and _boot.py is included in the build. I suspect it might be related to VFS or flash partition setup. Questions: Has anyone encountered ENODEV after building a custom MicroPython firmware for ESP32 with OTA? Are there specific settings in mpconfigport.h or partition table configurations needed for file system access? Could this be related to frozen modules or missing VFS mounting in the build? Firmware info:
ESP32_GENERIC_S3.zip Any pointers would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Try erasing the flash before flashing the new OTA firmware. The partitions may not be the same as the previous firmware. |
Beta Was this translation helpful? Give feedback.
You need to import flashbdev first, do this in REPL