Updates mcumgr plugin on file upload - it looks for the SHA256 starting from the end of the file, but this does not work if the image already includes the trailer.
With Zephyr for example, generating a pre-confirmed binary will add the trailer (with the imgtool --confirm option).
Proposal
Read header and image size to determine where to start looking for TLVs.
Description
Updates mcumgr plugin on file upload - it looks for the SHA256 starting from the end of the file, but this does not work if the image already includes the trailer.
With Zephyr for example, generating a pre-confirmed binary will add the trailer (with the imgtool --confirm option).
Proposal
Read header and image size to determine where to start looking for TLVs.