Chat freely about anything...

User avatar
By eriksl
#27745
dkinzer wrote: If you're using a command line utility to download to Flash, you'll have to specify loading the irom0.text image at 0x10000 rather than at the usual 0x40000 for the non-OTA boot scheme.

Or make a "composite" image by padding the 0x00000 file to 0x10000 and then append the 0x10000 (which is what I do).
User avatar
By dkinzer
#27749
eriksl wrote:Or make a "composite" image by padding the 0x00000 file to 0x10000 and then append the 0x10000.
True, the .irom0 code is all position-independent since it is copied to the iram cache at execution time.

My esp_tool can build the composite file with 0xff padding if you choose. It can also build and download "sparse" combined files. which eliminates the need to transmit the padding bytes to the device. Depending on the amount of padding, this can speed up Flashing considerably.