Keil™, An ARM® Company

Discussion Forum

syntax for hex2bin

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
punitha vathi
Posted
23-Sep-2008 17:31 GMT
Toolset
C51
New! syntax for hex2bin

can any one give the correct syntax for HEX2BIN CONVERSION. I refered in the website it is not clear and it is not working .
thanks in advance

Read-Only
Author
Andy Neil
Posted
23-Sep-2008 23:13 GMT
Toolset
None
New! RE: syntax for hex2bin

In what way is it "not clear"?

How can anyone explain it more clearly, if they don't know what you need clarifying?!

Read-Only
Author
Andy Neil
Posted
23-Sep-2008 23:17 GMT
Toolset
None
New! RE: can any one give the correct syntax for HEX2BIN

Are you saying that the syntax given at http://www.keil.com/download/docs/7.asp is not correct?

Syntax: HEX2BIN [/option] hexfile [binfile]

hexfile is the Intel HEX input file
binfile is the binary file to create

option  may be any of the following

  /Ln     Binary file length
  /Pn     Pad data for binary file
  /On     Address offset (to add to HEX records)
  /M      Merge data into existing BIN file
  /Q      Quiet mode (no statistics are displayed)
  /X      Don't process ext. segment/linear address records

  /?      This help text
Read-Only
Author
Adi Moica
Posted
20-Nov-2008 21:25 GMT
Toolset
None
New! RE: can any one give the correct syntax for HEX2BIN

If myfile.hex has gaps and I want to keep the gaps in erased state I'd fill them with FF.

Both
HEX2BIN /f0xff myfile.hex
and
HEX2BIN /f255 myfile.hex
fill the gaps with 00 and not FF as I expected.

Read-Only
Author
Adi Moica
Posted
20-Nov-2008 22:09 GMT
Toolset
None
New! RE: can any one give the correct syntax for HEX2BIN

found a better one at
http://sourceforge.net/project/showfiles.php?group_id=75139&package_id=75583

Read-Only
Author
Andy Neil
Posted
20-Nov-2008 22:40 GMT
Toolset
None
New! RE: not FF as I expected

But there is no "/f" option listed in the syntax for Hex2Bin - did you try "/P"...?

Next Thread | Thread List | Previous Thread Start a Thread | Settings