MC56F82748 bin file modification.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC56F82748 bin file modification.

ソリューションへジャンプ
4,514件の閲覧回数
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,502件の閲覧回数
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,507件の閲覧回数
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,505件の閲覧回数
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,503件の閲覧回数
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,483件の閲覧回数
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,463件の閲覧回数
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 件の賞賛
返信