Content originally posted in LPCWare by dwjperry on Wed Jan 14 21:12:55 MST 2015
Thanks, that makes sense.
Given the complexity of the file format, how about a naive approach? Doing a binary diff on images compiled for banks A vs B revealed about 1000 changes for a ~190kB image size, all appear to be simply swapping 0x1A for 0x1B (i.e. the upper address byte of the flash banks).
I could send an image targeted at bank A, and then a binary patch (rather than the full image) to target it at B, all wrapped in an appropriate structure with checksums etc. My main concern is reducing the amount of data to be sent over the wire, so this might be workable.