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?
Hello Sarah,
When you already read PartId and the BootloaderId the connection seems to be OK. So Baudrate and XTAL Freq seem to be OK.
By the way...I think with the term "XTAL Freq" the frequency of the external oscilator of your MCU is meant. So you can't set it up through windows os ;-)
I think the hexfile with the new firmware for the MCU is either damaged or simply hasn't the correct format. You should make a research into this direction.
Dear Werner I thought the problem may be with the file, so I send the HEX file to the person who has sent me the file through Email and he said he could upload it to the Flash. I am confused! I wanted to know do you have enough equipment if I send the file to you, can you test it on the MCU you have. It's LPC2134.Or do you have any other idea? Thanks in advance.
By the way I read the information in this Forum about HEX file format. It was very useful, http://www.keil.com/support/docs/1584.htm I also Copied the sample file in this page in Notepad (I use Windows XP Operating System). And save it with HEX extension. I could upload this file to the Flash. I was surprised!! The file that I could upload was this one: :10001300AC12AD13AE10AF1112002F8E0E8F0F2244 :10000300E50B250DF509E50A350CF5081200132259 :03000000020023D8 :0C002300787FE4F6D8FD7581130200031D :10002F00EFF88DF0A4FFEDC5F0CEA42EFEEC88F016 :04003F00A42EFE22CB :00000001FF The format of the HEX file that I can't upload is like this :020000040000FA :1000000018F09FE 518F09FE518F09FE . . . . :00000001FF The size of the fiel is 135 KB. Can I send the file I want to upload to anyone to check it? If anyone can help me in this field please put his email address for me and I will send him the HEX file. Thanks in advance. Sarah.
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).
518F09FE518F09FE
does not start with a colon. Maybe a linebreak from the previous line.
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.