Validate bin file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Validate bin file

1,780 Views
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? 

 

Tags (1)
0 Kudos
Reply
1 Reply

1,763 Views
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 Kudos
Reply