MC56F82748 bin file modification.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MC56F82748 bin file modification.

跳至解决方案
4,454 次查看
terrybogard
Contributor II

MC56F82748 I need add some header information to bin file for bootloader, is there any suggestion about how to modify the bin file?

0 项奖励
回复
1 解答
4,442 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

0 项奖励
回复
5 回复数
4,447 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
4,445 次查看
terrybogard
Contributor II

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?

0 项奖励
回复
4,443 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
4,423 次查看
terrybogard
Contributor II

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.

0 项奖励
回复
4,403 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复