-
Notifications
You must be signed in to change notification settings - Fork 9
Built-in esptool flash, install,info,erase_flash (via Pythonx) #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Forgive my ignorance, but wouldn’t this lead to pythonx being included in the user application? It would be neat if we could just auto detect if esptool is already installed, and if not use pythonx automatically… kind of the reverse logic of what you added to the esp32.flash task. |
7e96cba
to
14ca1c8
Compare
lol, yes - I updated things to runtime: false.. one could argue for your suggested logic, but this PR goes for if (I've had issues with idf_path, and using pythonx also means version control of esptool) |
I don't use the esptool in IDF path either. I use a package manager installed version. It's available in every distro I use, and that way I am always using the current version, even if testing an older (i.e. 5.1) ESP-IDF build of the VM. |
This is actually a very good argument for using pythonx all the time... ignoring any other installed versions of esptool. It would also allow for less setup friction for Elixir developers (and presumably Erlang if we take this approach with the atomvm_rebar3_plugin) who are using microcontrollers for the first time with AtomVM, and downloading release images. It would be nice to have one less thing to have listed under the setup requirements, or to remember to add to mix.exs. |
Agreed, but pythonx is otp25+ and elixir 1.15+, so for the time being it needs to be optional.. Think PR is good as is, as to also test it out - I'll update the igniter install to use this as default.. |
14ca1c8
to
364dd6d
Compare
50df6c1
to
757e852
Compare
needs #47 but otherwise good to go. |
bd5134c
to
d031db5
Compare
ac93e42
to
12894af
Compare
dfd58ec
to
c5405c2
Compare
2585965
to
18ff8c7
Compare
Optional use built-in esptool install via Pythonx. Signed-off-by: Peter M <[email protected]>
18ff8c7
to
a0bc222
Compare
Optional use built-in esptool install via Pythonx.
add pythonx to your project:
{:pythonx, "~> 0.4.0", runtime: false}
and
mix atomvm.esp32.flash