Hi, Does anyone know how to convert a large (20mb) HEX file into ASCII or another viewable format? What is the fastest method?
The Nordic forum automatically awards a 'Necromancer' badge!
Does this forum have the option to auto-lock inactive threads?
Oh Mercy me, I got tripped up by another one of those necromancer posts.
(I will have to pay more attention to the posting date. )
No good deed goes unpunished.
I very much hope that brody miles is not still stuck on this after over 12 years ... !!
Hello Brody,
Thank you for your interest in the Keil tools.
Do you know what microcontroller this hex file was meant to run on? Was it for an Arm device, an 8051?
What you have is the actual raw machine code (zeros and ones) that would get executed on the device. You can read more about the Intel Hex file format here.
You can use tools to covert the Hex file into easier-to-parse formats, but nothing easily human readable.
When a linker runs, it typically makes a machine readable file like .hex or .axf, but it also makes a Linker Listing map file. (aka an image map) that summarizes what the linker did. This file type usually has a *.map file extension.
What type of analysis are you needing to do?
(It looks like ACL and Monarch are good for pulling and comparing data from different databases or spreadsheets.)
If we know the device, and what data you need, we may be able to suggest a better analysis tool, or existing features within the Keil tools.
We are always interested in new ways our customers want to analyze the projects, so please let us know!
Yes,that's very interesting stuff to know about. Thank you so much for the valuable information.
Check This: http://www.crunchytricks.com/2016/03/image-to-ascii.html
"can any one tell me what's wrong?"
Is your filename too long?
Hi, I downloaded the tool but it didn't work. My command is "\>HEX2BIN.EXE serialapi_ctrl.hex" The message is { HEX2BIN Version 1.06 Copyright (c) 1995 Programix Corp. Portions copyright (c) 1993-1995 BITWARE. All rights reserved.
ERROR: Could not open HEX file serialapi_ctrl.hex. Status: HEX to BIN conversion was not successful. } My OS is WinXP SP2, can any one tell me what's wrong?
assembeler
"I don't recognize the binary data..."
I don't expect you would: I don't think it has anythihg to do with embedded firmware - the OP says he's a "data analysis consultant"
Using the HEX viewer?
A hex viewer is what you use when you want to look at a binary file.
If the file is already in hexadecimal format, it is already - as Andy notes - in a form of ASCII.
I don't recognize the binary data, and it doesn't looks to make sense if treated as IEEE floating-point data either.
That's a binary file, then.
UltraEdit is displaying it 16 bytes to a line, and showing the start address to the left of each line:
00000000h: 8C C5 97 2B 5C D6 00 00 00 00 93 98 30 00 30 00 ; ^^^^^^^^^ ^^ ^^ ^^ ^^ Address | | | +-- 4th byte - at Address +3 | | +----- 3rd byte - at Address +2 | +-------- 2nd byte - at Address +1 +----------- 1st byte - at Address etc
Opening it in UltraEdit using the Hex viewer, it looks like this:
00000000h: 8C C5 97 2B 5C D6 00 00 00 00 93 98 30 00 30 00 ; 00000010h: F5 F2 F0 40 F9 F4 F0 F6 40 40 40 40 40 40 40 40 ; 00000020h: 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 ; 00000030h: 00 00 40 00 00 00 10 00 00 00 00 00 00 00 92 98 ; I opened it in WordPad and it's a bunch of special characters (boxes, @, etc.)
If by "Hex" you mean "Intel Hex", then it already is ASCII!
Intel Hex is an ASCII representation of binary data.
The format is described here: http://www.keil.com/support/docs/1584.htm There's also some examples - see if you recognise it!
If the total data is 20MB large, then it might possibly be ok to send the first 3-5 lines of the HEX data.
I'm a data analysis consultant and am unfamiliar with this data format that I received from a client. We usually receive files in some sort of ascii print or text report and then use analysis tools such as ACL or Monarch to parse them out. Unfortunately, the data is confidential and i can not post. Just was wondering if there is an easy answer...thanks!
View all questions in Keil forum