Description
I.e. invoking (via the command line, or via the espflash
API):
espflash save-image --chip esp32s3 target/xtensa-esp32s3-espidf/debug/my-firmware my-firmware.bin
... would output a my-firmware.bin
which - sequentially:
- Contains an optional empty page (4096 bytes of 0xff) for those chips where the bootloader starts at offset 0x1000
- Contains the bootloader itself - either the embedded one or whatever the user had supplied on the command line
- Contains the partition table padded to 4096 bytes
- Contains empty space (0xff) until the offset where the app factory image starts in the partition table
- Contains the app factory image itself
Now, I get it that this way it is maybe simpler for the user - in un-sophisticated scenarios - to flash the binary by just doing then espflash write-bin --chip esp32s3 0 my-firmware-.bin
but this is making it difficult for that very same user to cover the scenario where she just wants her .ELF
to be converted to .bin
on the command-line without any bootloader and partition-table concatenations in-between.
Even when using the espflash
API rather than the command line, it is a bit weird, as I still have to deal with the bootloader and the partition table, even though - as mentioned - I just want to convert the .ELF to bin no extra stuff included thank you very much :-)
Also the question is a bit - in those un-sophisticated scenarios - the user is likely not going through the two step process of "save-image" and "write-bin" anyway. She probably just wants to do espflash flash --chip esp32s3 target/xtensa-esp32s3-espidf/debug/my-firmware
(optionally passing a custom bootloader image and part-table on the command line) and then the "concatenation" is invisible anyways as it happens internally to espflash
. Which is fine.
So why not supporting a variant of "save-image" which is doing the "no-thrills" stuff of outputting a binary app image and that's it?
And then separate commands for converting and outputting the embedded bootloader to .bin
and the embedded or externally-passed partition-table CSV to .bin?
Metadata
Assignees
Labels
Type
Projects
Status
Todo
Activity