Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: mahler on May 09, 2005, 10:53:36 AM

Title: How to save the HEX file?
Post by: mahler on May 09, 2005, 10:53:36 AM
In FlashMagic manuel, it is said that saving the burned data as HEX file is possible. But in my FlashMagic, the manu item of "Save as" is always gray.

Chip: LPC922
Connection is good
Blank check: not blank
Read security Bits: not set

Could any guy please tell me how to "Save as"? Thanks.
Title: Re: How to save the HEX file?
Post by: Andy Ayre on May 09, 2005, 10:56:09 AM
Reading the contents of the device memory is not supported on the LPC9xx devices when using ISP, so the hex file save feature is not available.

Title: Re: How to save the HEX file?
Post by: mahler on May 09, 2005, 07:57:13 PM
Andrew Ayre wrote:

> Reading the contents of the device memory is not supported on
> the LPC9xx devices when using ISP, so the hex file save feature
> is not available.
>
>


Thank you, Andy. I won't waste any more time, according this information.
Title: Re: How to save the HEX file?
Post by: Jan Waclawek on May 12, 2005, 12:34:56 AM
Having a look at the sourcecode  of ISP of LPC9xx (available from Philips website) reveals, that there _is_ a read data feature implemented, it just happened not been mentioned in the documentation...

Jan Waclawek
Title: Re: How to save the HEX file?
Post by: Andy Ayre on May 12, 2005, 08:12:25 AM
Yes, however neither Philips nor ESAcademy supports undocumented features. Use with caution - there might be reasons why it wasn't documented.

Title: Re: How to save the HEX file?
Post by: erikm on May 12, 2005, 09:27:14 AM
A good guess would be that they took the code from e.g. tle Rx2 and modified it.  Then it is not unusual that some such will reamin, although having no effect.

Erik
Title: Re: How to save the HEX file?
Post by: Jan Waclawek on May 12, 2005, 01:17:44 PM
Andy:
Yes, however neither Philips nor ESAcademy supports undocumented features. Use with caution - there might be reasons why it wasn't documented.

Of course; it's just an answer to the OP. He can try himself, using any terminal emulator.

Jan Waclawek
Title: Re: How to save the HEX file?
Post by: Andy Ayre on May 12, 2005, 01:20:36 PM
I was anticipating the next question: "When will Flash Magic support this feature". :)

Title: Re: How to save the HEX file?
Post by: Jan Waclawek on May 12, 2005, 02:31:34 PM
OK so you have already scheduled it? :-D

(Btw. could you ask Philips, why is it not documented? The sourcecode of bootloader is published.)

Jan Waclawek
Title: Re: How to save the HEX file?
Post by: erikm on May 13, 2005, 05:57:41 AM
my guess

it is not documented becuase it is not there.

The ultimate code safety (and you do not need to set any security bits) is the inability to read the code externally.

Now go get a big sticj and go hit Bill Houghton oin the head because he did not tyotally remove the invalid code. OH, only do so, if you have never done so yourself.

Erik
Title: Re: How to save the HEX file?
Post by: Jan Waclawek on May 19, 2005, 08:56:45 AM
OK so I finally wired up a P89LPC932A1 (they are sitting quietly in my drawer since I bought them three months ago... simply have no time for my hobbies) to a piece of protoboard and started one of my favorite terminal programs and... guess... it works, so it's there. Of course, set the security bit and it reads nothing (returns all zeros).

Btw, a surprise for me, the erased part reads all zeros (not FFs)!

Jan Waclawek
Title: Re: How to save the HEX file?
Post by: Andy Ayre on October 16, 2009, 08:58:20 AM
Sorry, it's still not documented and therefore not supported by NXP or us.

If you wish to verify what you programmed is correct use the CRC feature on the ISP menu.

Andy