mpremote for esp32 with MICROPY_PREVIEW_VERSION_2 #13663
Unanswered
shariltumin
asked this question in
Libraries & Drivers
Replies: 1 comment 2 replies
-
Thanks @shariltumin -- Indeed this was (briefly) discussed in the PR that moved the methods. #13584 (comment) We'll need to address this soon, and it'll be a good opportunity to make |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The mpremote allows us to execute files from the unix directory from within micropython. This is good because we do not have to copy files to flash during development, which extends the life of the flash.
However, compiling ESP32 with:
will not include mount and umount methods under the os module. The MP2 version uses vfs modules for mount and umount.
We need to compile ESP32 with:
Now with mpremote-1.22.0
So we need to modify mpremote for ESP32 compile for MICROPY_PREVIEW_VERSION_2 with MICROPY_PY_OS.
The easiest way is to copy mpremote to espremote and edit the transport_serial.py file in the new espremote directory. Also copy the mpremote start file to espremote and edit it to use espremote.main file.
from espremote.main import main
This is just for information for those compiling their own firmware. Hopefully it will be useful to someone.
Beta Was this translation helpful? Give feedback.
All reactions