1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

HEX file in LPC2000 Flash Utility

Discussion in 'Embedded' started by sarah, Jan 31, 2008.

  1. sarah

    sarah Guest

    Hello there
    I am upgrading 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?
    Thanks in advance.
    sarah, Jan 31, 2008
    1. Advertisements

  2. sarah

    Arlet Guest

    What does your .hex file look like ? It should look something like

    The frequency in the flash utility screen should match the crystal
    frequency on your device. It has nothing to do with windows.
    Arlet, Jan 31, 2008
    1. Advertisements

  3. sarah

    sarah Guest

    When I was searching this group I have seen this format. I checked it
    that time and again. I think the format of the HEX file is correct but
    I have copied the 3 first and the last line of it:

    Is it any thing wrong?
    By the way the person who has sent me the manual says he can upgrade
    the Flash by the same HEX file.
    Thanks for your reply.
    sarah, Feb 3, 2008
  4. sarah

    Rich Webb Guest

    If what showed up in the quote above is what's really in the hex file
    then yes, something is wrong. For comparison, here's the first three
    lines from a simple "blink the LED" ARM project's hex file:


    By "can" does he mean that he is capable of or that he has?
    Rich Webb, Feb 3, 2008
  5. sarah

    CBFalconer Guest

    Yes. That is an impossible content for an Intel format HEX file.
    There is an entire chapter in ppmanual, available as ppmanual.zip,
    on hex format and rbm format files. You can find this at:

    CBFalconer, Feb 4, 2008
  6. sarah

    sarah Guest

    I have just made a mistake about the file I am using. I just create a
    page break in it. The file I can't upload to the Flash looks like
    I have collected some information about the HEX file format and now I
    am more familiar with it.
    But there is a problem. While I am opening this file with Notepad, the
    format of the file does not look like this.But when I open it with
    softwares that can read HEX files like Tiny HEX, the format is like
    above. So I decided to make the HEX file again. I copied the
    information that was shown in Tiny Hexer software in a Notepad and
    arranged the page breaks same as above. But again I could not upload
    the file.
    What is starange is that when I use the below HEX file, I can upload
    ut to the Flash:
    I am confused!!!
    sarah, Feb 4, 2008
  7. sarah

    Rich Webb Guest

    Microsoft, in its great wisdom, often believes that it knows better
    what you want than you do.
    Don't do that. If you want or need to check the file format, do not
    use Notepad. Go to http://www.sourceforge.net/ and search on
    "programmer's editor" for a lot of better choices. Or go to
    http://www.vim.org/ and download the One True Editor. ;-)
    Rich Webb, Feb 4, 2008
  8. Never, ever use Notepad. It's usless. Wordpad is far less
    broken than Notepad, but still vastly inferior to something
    like PFE or emacs, or vim, or several dozen other (free) real
    Grant Edwards, Feb 4, 2008
  9. sarah

    msg Guest

    Or for simple editing just use 'ed' under cygwin (you only
    need 'ed.exe' and 'cygwin1.dll' -- be sure to use the
    correct version of the dll for the executable; if you
    get unresolved sym references, get a newer cygwin1.dll).

    msg, Feb 4, 2008
  10. sarah

    CBFalconer Guest

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ which are here
    ^^___ Data length is 10 hex, i.e. 16 bytes
    ^^^^____ and load at address 0013 (hex)
    ^^____ this is a type 0 (data) record.
    and has a checksum of 44 hex ____ ^^
    and anything following, up to the colon, is to be ignored.
    The above are all type 00, i.e. data, records.
    but this ^^ is a zero data length type 1 record. The 0000 address
    says transfer control to the byte loaded at address 0, or don't
    Look up the reference I gave you yesterday, which explains it all.

    If you want to post a followup via groups.google.com, ensure you
    quote enough for the article to make sense. Google is only an
    interface to Usenet; it's not Usenet itself. Don't assume your
    readers can, or ever will, see any previous articles. More details
    CBFalconer, Feb 4, 2008
  11. Watching an experienced "ed" user is pretty amazing.

    Watching an inexperienced "ed" users is pretty amusing.

    I am (and always will be) in the latter categeory. I doubt
    that there have been any new entrants in the former for a long
    Grant Edwards, Feb 4, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.