How do I know the checksum of the .elf generated by KDS?

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

How do I know the checksum of the .elf generated by KDS?

ソリューションへジャンプ
4,158件の閲覧回数
johns_chuang
Contributor III

Hi 

How do I know the checksum of the .elf generated by KDS?

Regards

Johns

0 件の賞賛
返信
1 解決策
4,140件の閲覧回数
ErichStyger
Specialist I

Hi Johns,

you might have a misunderstanding of the role of the SDK?

The 'burning' file is not created by the SDK, but with a tool like objcopy. See https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/

Objcopy is called either directly from the IDE or as part of the build process.

And yes, you can create different file formats, including Intel Hex, see above article.

PS: As a side note: CRC and checksums are different things (and get easily mixed up). Intel Hex is using a checksum, not a CRC. Same for S19 files.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
4,144件の閲覧回数
johns_chuang
Contributor III

Hi Erich

Does the SDK have any verification mechanism to verify the generated .elf file when creating the burning file?
Also, can the SDK generate other programming files with CRC, such as .hex?

Thank you for your assistance.

Johns

0 件の賞賛
返信
4,141件の閲覧回数
ErichStyger
Specialist I

Hi Johns,

you might have a misunderstanding of the role of the SDK?

The 'burning' file is not created by the SDK, but with a tool like objcopy. See https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/

Objcopy is called either directly from the IDE or as part of the build process.

And yes, you can create different file formats, including Intel Hex, see above article.

PS: As a side note: CRC and checksums are different things (and get easily mixed up). Intel Hex is using a checksum, not a CRC. Same for S19 files.

0 件の賞賛
返信
4,103件の閲覧回数
johns_chuang
Contributor III

Hi Erich

Thank you for your correction and information.

I will further study and explore.

Thank you.

0 件の賞賛
返信
4,149件の閲覧回数
ErichStyger
Specialist I

Hi Johns,

The .elf itself does not have special checksum. If you are asking how to calculate one to be used in your application (e.g. used with a bootloader), see https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/

I hope this helps,

Erich

0 件の賞賛
返信