Skip to content

platform-system-interface/haeftobf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haeftobf

TL;DR: Decode a hex-ASCII-encoded file to a raw binary file:

haeftobf foo.asc

The output file will have the same name, just with the extension .bin.

Your file may contain any number of separate lines. No spaces or other characters are allowed within a line. Every line is required to contain an even number of characters, of which two each represent one byte, hex-encoded. E.g., 42 is the character B. In other words, the resulting file will be half the input file or less in size.

This is useful in scenarios where you may easily transfer ASCII characters, but you really want binary data. You can use haeftobf to dump memory over a UART, while you also have code running that logs other information, for example.

About

convert a hex-encoded file to binary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages