Reply by Sanjiwani December 21, 20052005-12-21
Thanks Leon I will take a note of your suggestion.
I was doing same mistake as you mentioned. Sanjiwani -----Original Message-----
From: lpc2000@lpc2... [mailto:lpc2000@lpc2...] On Behalf Of
Leon Heller
Sent: Monday, December 19, 2005 7:21 PM
To: lpc2000@lpc2...
Subject: Re: [lpc2000] Error: Unsupported Hex File Type In LPC2000 Flash
Utility

----- Original Message -----
From: "Sanjiwani" <s_kesarkar@s_ke...>
To: <lpc2000@lpc2...>
Sent: Monday, December 19, 2005 1:13 PM
Subject: [lpc2000] Error: Unsupported Hex File Type In LPC2000 Flash Utility > Hi Everyone >
> I have written a program in cross works & generated hex file.
>
> But By mistake I have opened that file in Notepad.
>
> Now if, I change content of hex file (Data) Directly & load that hex file
> in Flash using LPC2000 Flash utility
>
> It Gives an error >
> Error is: Unsupported Hex File Type

It's not a good idea to edit hex files, they have checksums for each record
(line). You must have changed it in some way. If you must do it, it's best
to convert it to raw ASCII hex, edit it, and convert it back to Intel hex or

whatever the format is. It's quite easy to write simple programs to these
conversions, you just need the format details.

Leon

---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ] Yahoo! Groups Links



An Engineer's Guide to the LPC2100 Series

Reply by Sanjiwani December 21, 20052005-12-21
Hi Umang..

Thanks for your reply.

Basically I am New in this Field.
And I am working on LPC for the First time.

Problem which I was facing was solved.
Actually I was doing a very simple mistake.
I was changing data, directly in hex file but was not updating checksum for
same.

Regards,
Sanjiwani Kesarkar
Jr. Officer Electronics
MIDCO LTD.
MUMBAI

-----Original Message-----
From: lpc2000@lpc2... [mailto:lpc2000@lpc2...] On Behalf Of
malhotra_umang@malh...
Sent: Monday, December 19, 2005 8:43 PM
To: lpc2000@lpc2...
Subject: Re: [lpc2000] Error: Unsupported Hex File Type In LPC2000 Flash
Utility

hi sanjivani...

First of all my intro...
I am Umang Malhotra. working in Delhi on LPC controller(s). Actually ur
problem is not clear.

Haven't u tried load another hex file
in Flash using LPC2000 Flash utility...

I mean it's not clear whether only the time u did that... it gave error or u
mean to say ... since then , it gives error every time u try load a new hex
file.

okay... __________________________________________________


Yahoo! Groups Links



Reply by December 19, 20052005-12-19
hi sanjivani...

First of all my intro...
I am Umang Malhotra. working in Delhi on LPC controller(s). Actually ur problem is not clear.

Haven't u tried load another hex file
in Flash using LPC2000 Flash utility...

I mean it's not clear whether only the time u did that... it gave error or u mean to say ... since then , it gives error every time u try load a new hex file.

okay... __________________________________________________




Reply by George M. Gallant, Jr. December 19, 20052005-12-19
Might be as simple as Notepad changed CR to CR/LF.

George

On Mon, 2005-12-19 at 18:43 +0530, Sanjiwani wrote:

> Hi Everyone >
> I have written a program in cross works & generated hex file.
>
> But By mistake I have opened that file in Notepad.
>
> Now if, I change content of hex file (Data) Directly & load that hex
> file
> in Flash using LPC2000 Flash utility
>
> It Gives an error >
> Error is: Unsupported Hex File Type > Can Anybody help me to solve this Problem >
> Sanjiwani
>
> Jr. Electronics Officer >
>
> ______________________________________________________________________
> YAHOO! GROUPS LINKS > 1. >
> ______________________________________________________________________




Reply by Leon Heller December 19, 20052005-12-19
----- Original Message -----
From: "Sanjiwani" <s_kesarkar@s_ke...>
To: <lpc2000@lpc2...>
Sent: Monday, December 19, 2005 1:13 PM
Subject: [lpc2000] Error: Unsupported Hex File Type In LPC2000 Flash Utility > Hi Everyone >
> I have written a program in cross works & generated hex file.
>
> But By mistake I have opened that file in Notepad.
>
> Now if, I change content of hex file (Data) Directly & load that hex file
> in Flash using LPC2000 Flash utility
>
> It Gives an error >
> Error is: Unsupported Hex File Type

It's not a good idea to edit hex files, they have checksums for each record
(line). You must have changed it in some way. If you must do it, it's best
to convert it to raw ASCII hex, edit it, and convert it back to Intel hex or
whatever the format is. It's quite easy to write simple programs to these
conversions, you just need the format details.

Leon

---
[This E-mail has been scanned for viruses but it is your responsibility
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]


Reply by Michael Rubitschka December 19, 20052005-12-19
I asume you dont have the sources andd cannot compile a new hex.
This raises severe doubts that opening the file with notepad was a mistake.
anyhow

1.make a copy of an original hex file.
2.Open the file with notepad
3.Do a bitwise compare

I asume the byte order mark got changed, but you will see the difference
immeadetly.

Cheers
Michael >From: Sanjiwani <s_kesarkar@s_ke...>
>Reply-To: lpc2000@lpc2...
>To: lpc2000@lpc2...
>Subject: [lpc2000] Error: Unsupported Hex File Type In LPC2000 Flash
>Utility
>Date: Mon, 19 Dec 2005 18:43:07 +0530
>
>Hi Everyone >
>I have written a program in cross works & generated hex file.
>
>But By mistake I have opened that file in Notepad.
>
>Now if, I change content of hex file (Data) Directly & load that hex file
>in Flash using LPC2000 Flash utility
>
>It Gives an error >
>Error is: Unsupported Hex File Type >Can Anybody help me to solve this Problem >
>Sanjiwani
>
>Jr. Electronics Officer >
>


Reply by Sanjiwani December 19, 20052005-12-19
Hi Everyone
I have written a program in cross works & generated hex file.

But By mistake I have opened that file in Notepad.

Now if, I change content of hex file (Data) Directly & load that hex file
in Flash using LPC2000 Flash utility

It Gives an error
Error is: Unsupported Hex File Type Can Anybody help me to solve this Problem
Sanjiwani

Jr. Electronics Officer