Skip to content

Append crc to the bin file and set the file to the required size

License

Notifications You must be signed in to change notification settings

SC-Develop/scd-bin2crc-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scd-bin2crc-cli (Qt C++)

Append CRC16 (16 bit CRC) to a bin file and set the file to the required size

Usage: bin-crc-cli <filename> <size>

Params

<filename>: source binary filename
<size>: require size of destination file (crc included).

If the destination size exceed the size of the original file, empty space at the end of file will be filled with FF, and the CRC will be added at the end of file.The size of the crc is 16 bits. The size of the space filled with FF is equal to <size> - 2 bytes. The destination size must be at least equal to original size + 2 bytes (CRC size), the exceeding bytes (if any) will be fileld with FF.

This is useful to add a CRC16 to a firmware binary file.

Output file wil be renamed as <filename>-crc.bin

About

Append crc to the bin file and set the file to the required size

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published