Skip to content

PitterL/Hex2Bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

h2bNh

This is Covering the Interl Hex format file to Binary or C header Support Extended Segment Address Record and Extended Linear Address Record

Namespace(align='16', baseAddr='0x0', filename='', gapSimSeg='0', pad='0xFF', sigmentTargetSize='0x0', wcrc=False) usage: Prog: [-h] [-v] [-f [File Name]] [-a [Segment Base Address]] [-s [The Generated Size of a Sigment]] [-p [Padded Value]] [- [Gap to a New Segment]] [--align [Text Align]] [--wcrc]

Covert Intel Hex format to Binary and c Header:

Examples: <1> For pure hex(without segment): python h2bNh.py -f file.hex -a 0x8000 -s 0x3800 -p 0xFF <2> For segment included hex: python h2bNh.py -f file.hex

optional arguments: -h, --help show this help message and exit -v, --version show version -f [File Name], --filename [File Name] where the 'hex' file will be load -a [Segment Base Address], --baseAddr [Segment Base Address] Used to appoint the Segment base address (will be ignore if has EXT_SIGMENT_ADDR record) -s [The Generated Size of a Sigment], --sigmentTargetSize [The Generated Size of a Sigment] Padded the output file, if this size larger than actual data size(only support single segment, Hex) -p [Padded Value], --pad [Padded Value] Padded value(hex) if the size argument is larger than actual data size(will be ignore if size arg is not appointed)

  • [Gap to a New Segment], --gapSimSeg [Gap to a New Segment] If Gap length is larger than dedicated(Dec), then simulate a new segment --align [Text Align] The text file will added \r every this number(Dec) --wcrc Indicate whether write CRC(24) to binary file, only work when large than + 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages