Validate bin file

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

Validate bin file

1,777件の閲覧回数
Runess
Contributor I

Hello, 

I want to validate the format of the bin file before upload it. For exemple,  with hex files I can check that all data is in hex format. But for bin files i can't find a way.

Bin files have any header or format that i can parse to validate it? 

 

タグ(1)
0 件の賞賛
返信
1 返信

1,760件の閲覧回数
ErichStyger
Specialist I

.bin (binary) files are just the data, without any other information. See https://mcuoneclipse.com/2012/09/27/s-record-intel-hex-and-binary-files/ for a more detailed view.

What I do is to generate a separate header with hash/CRC, see https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/

 

I hope this helps,

Erich

0 件の賞賛
返信