This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HEX file in LPC2000 Flash Utility

Hello there
I am loading an upgrade version of MCU on our MICR check reader with the LPC2000 Flash Utility V2.2.2. This device is connected to serial port (DB9f). I do the steps with the manual I have. In this manual, first I read the Part ID and Boot Loader ID of the device. Then I erase and Blank check. All these parts are done properly but when I want to Upload my HEX file to the flash the Error message is occurred and say "Invalid or Unsupported HEX file!".
Can any one help me this problem?
Just a little point: In the manual is written the XTAL Freq should be 11059 KHZ and Baud Rate 57600. I use Windows Operating system and change the Baud Rate of COMM port to 57600 but don't know how to change the frequency? Any idea?

Parents
  • Have you created the line breaks now when posting, or is your hex file containing extra line breaks?

    All lines should start with a colon, and should have a known number of hex characters depending on the length info first in the line. All lines should also have a valid checksum.

    The line

    :1000000018F09FE
    


    is too short (the start of the line specifies # of bytes of data it should contain).

    The line

    518F09FE518F09FE
    


    does not start with a colon. Maybe a linebreak from the previous line.

Reply
  • Have you created the line breaks now when posting, or is your hex file containing extra line breaks?

    All lines should start with a colon, and should have a known number of hex characters depending on the length info first in the line. All lines should also have a valid checksum.

    The line

    :1000000018F09FE
    


    is too short (the start of the line specifies # of bytes of data it should contain).

    The line

    518F09FE518F09FE
    


    does not start with a colon. Maybe a linebreak from the previous line.

Children
  • Dear Per
    Yes,I have created page break as you have guesed.
    The file is too long for checking if all the lines beging with colon or not, but when I am skimminng I don't find a line without Colon at the begining.

  • I have found some thing new in the HEX file I am using. Today again I noticed to it and understood that while the file is opened in Notepad it doesn't have the standard format of HEX file. But when it's opened in other software that can read HEX files like Tiny Hexer it's like below:
    :020000040000FA
    :1000000018F09FE518F09FE518F09FE518F09FE5C0
    :1000100018F09FE5805F20B9F0FF1FE518F09FE51D
    . .

    :0CC4400000000000000000402C3A00004A
    :00000001FF
    So I decided to make the HEX file myself. I copied the data in the TInyHexer Software and paste it in a Notepad. I create a line break before each : but again the software show the Error message: Invalid or unsupported HEX File.
    Just a little point. When I made the HEX file I made a line break but when I copy the Lines I see 2 page breaks between Lines Maybe the file had itself a line break and made it double.!

  • "while the file is opened in Notepad it doesn't have the standard format of HEX file"

    So what format does it have?!

    You're not using 'Word Wrap' in Notepad, are you?
    (on the 'Format' menu)

    Note that this forum will automatically wrap long lines unless you use the 'pre' and '/pre' tags as for posting source code.
    See: http://www.keil.com/forum/tips.asp

  • There are three major ways of encoding line breaks:
    - Carriage Return (CR)
    - Carriage Return + Line Feed (LF)
    - Line Feed (LF)

    Some programs supports all versions. Some one or two. Notepad is known to be stupid. Programmers editors on the other hand can normally handle files from unix, win or mac, and autodetect the line break method - and often convert the line endings.

  • No I didn't use word wrap. While I copied the file, there was one free line between codes and I just delete them.
    Thanks.