-
Notifications
You must be signed in to change notification settings - Fork 111
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
Better user experience for setting the flashing address #67
Comments
Imho this change is not needed. Every ESP32 needs several files flashed at different addresses. The user always have to think about where to flash which file. |
Thank you for your comment @Jason2866. There has been a feature request for esptool.py to produce .hex files, which would be self-descriptive — a user who got such a file wouldn't need to specify the address at all. Maybe that would be better user experience than automatically setting the flashing address. Edit: have renamed the issue to a more general one. |
Nice, generated firmware files which includes the info on which address the should be flashed would be indeed a great enhancement. |
As in like the (really) old (Intel?) HEX file format? |
Yes, Intel hex. I did an experiment using this script to generate a .hex file from an IDF build directory. With the get-started/hello_world example:
558kB .hex file size is almost 3 times larger than the sum of the .bin file sizes. It's also twice as big as the "merged" binary. Is that going to be a problem? I don't think so, most people probably wouldn't notice much difference. When downloading such a file, it is likely to be gzip-encoded during transfer. So the only difference is storing 558kB vs 238kB on the PC. |
Yep, that's true indeed. |
The default flashing address is 0x1000 which is valid for the ESP32. Newer chips expect the binary to be flashed at 0 address. We could automatically update the address field after detecting the chip.
The text was updated successfully, but these errors were encountered: