Use transaction block number for address offset
Multiplatform USB DFU host utility
Brought to you by:
tormod
Hi, I've got a slight improvement on image downloading when using the block number for the address calculation instead of sending the new address before each chunk and a fixed block number =2. I've only tested it with a STM32F072.
Anonymous
Interesting, thanks! At a first view, this seems to make sense. It is limited to 65535-2 blocks though, but that can be dealt with if necessary. How much is the gain that you are seeing?
Around 47ms for a 120kB image and a 2kB block size (60 transactions).
Indeed, I am not sure whether it would work for any combination of memory size/block size. As per AN3156, it seems to apply for all cortex-m series.