MC56F82748 I need add some header information to bin file for bootloader, is there any suggestion about how to modify the bin file?
Solved! Go to Solution.
Hi,
I do not think it is okay to modify the *.bin file directly. As a workaround, you can change your application code, for example in your application code, in a specific address, you can write header, mark, version of application code so that the bootloader can read the version from the specific address.
Hope it can help you
BR
XiangJun Rong
Hi, Terry,
I do not think you can change or add something in the *.bin, because the *.bin is binary file, it is binary code directly.
If you use S-Record file, you can add header part with S0 as prefix.
Hope it can help you
BR
Xiangjun rong
Hi xiangjun,
According to our customer's requirement, i should offer bin files for updating which should contain some header information, so updating can be judged whether should be conduct.
as your opinion, is this unreachable?
Hi,
I do not think it is okay to modify the *.bin file directly. As a workaround, you can change your application code, for example in your application code, in a specific address, you can write header, mark, version of application code so that the bootloader can read the version from the specific address.
Hope it can help you
BR
XiangJun Rong
Hi xiangjun,
I agree your opinion, but how I can add the header mark into the bin by add them in application code? can you give an example? thanks.
Hi,
I attach the MC56F83XXBLUM.PDF, pls refer to the section 1.1.7.1 User’s Application Bootloader Configuration, which writes the BOOT_START_DELAY and BOOT_VERSION_PROMPT constants to a specified location by application code. Pls refer to the section.
Hope it can help you
BR
XiangJun Rong