2023-09-29 02:07 AM
Hi,
I am trying to identify ways in which a bootloader can identify the details (maybe some address or the name of device) of incoming .bin file and check if the file is actually intended for the MCU. Is there any kind of metadata in the binary or possible to add data in the binary so that the bootloader can check while receiving the file?
Any new ways appreciated.
Thanks!:beaming_face_with_smiling_eyes:
2023-09-29 05:48 AM
There's no built-in metadata unless you put it there. One technique is to repurpose unused entries in the interrupt table and write information there instead. Since the interrupt table is at the start of the file, in a fixed format, that can be used to identify the correct chip.