Keil™, An ARM® Company

Discussion Forum

ERROR: Could not open HEX file"

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

DetailsMessage
Read-Only
Author
C Adams
Posted
17-Oct-2005 04:53
Toolset
C51
New! ERROR: Could not open HEX file"
I have run into a problem with the hex2bin.exe utility. With the hex output file from uVision2, in HEX-80 format(only option I have), I am not able to create a binary file using the hex2bin utility.

The error I get is "ERROR: Could not open HEX file". Since the documentation on the hex2bin utility is so limited I can not determine what the problem is.

Thank you in advance for your ideas/thoughts.
Read-Only
Author
Andy Neil
Posted
17-Oct-2005 05:01
Toolset
C51
New! More info required
"Since the documentation on the hex2bin utility is so limited I can not determine what the problem is."

Since the information you've provided is so limited, I can not determine what the problem is.

However, I seem to remember that HEX2BIN has no tolereance of long file names - you have to use the short form of the name.

How about posting the command line you used, and the precise message you got - use cut-&-paste, do not retype.
Read-Only
Author
Clint Adams
Posted
17-Oct-2005 05:22
Toolset
C51
New! RE: More info required
Wow, quick response. You were right, the file name was too long, 9 characters. The HEX2BIN utility will only accept up to 8 characters in the file name 12345678.hex.

On another note, how do you cut and paste from a dos command promt?

Thanks,

Clint
Read-Only
Author
A.W. Neil
Posted
17-Oct-2005 15:46
Toolset
C51
New! RE: More info required
"how do you cut and paste from a dos command promt?"

Click on the menu icon at top left (in the title bar), then go to 'Edit', then it should be easy from there...


Or, go to 'Properties' in that menu, go to the 'Options' tab, then check 'QuickEdit Mode' - this allows you to select text directly in the window, without having to go via the 'Edit' menu.

Standard Windoze stuff...
Read-Only
Author
Emil Petrov
Posted
17-Oct-2005 06:57
Toolset
C51
New! RE: ERROR: Could not open HEX file"
I'm using the following HEX editor and I'm very happy with it
http://www.softneed.net/articledetails.php?id=12490

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