-
Notifications
You must be signed in to change notification settings - Fork 996
Flash ESP32 chips directly from TinyGo #1324
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
Conversation
|
If you install via the Debian package, it names it |
Some chips (like the ESP family) have a particular image format that is more complex than simply dumping everything in a raw image.
Right now this requires setting the -port parameter, but other than that it totally works (if esptool.py is installed). It works by converting the ELF file to the custom ESP32 image format and flashing that using esptool.py.
Yes. I installed it with |
|
I used apt install esptool on ubuntu 20.04 and it installed esptool instead of esptool.py. |
|
@sago35 on my machine it was |
me too. |
|
Just tried this branch, received the following error: Am I doing this correctly? |
|
Wait, I think I have wrong version. Rebuilding... |
Worked exactly as promised. Great job @aykevl this is getting more exciting by the hour! Now merging, we need this! |
|
my build log. |
This PR is a followup to #1289. It adds support for the custom image format used by the ESP32 and flashes it using
esptool.py.A future improvement may be to use one of the Go implementations of esptool to avoid the extra dependency.
Making this a draft for now until #1289 is merged (it should be rebased when it gets merged).