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.
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.
View all questions in Keil forum