Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: Yngwie on September 15, 2003, 12:31:51 AM

Title: Problem programming LPC932 with FlashMagic
Post by: Yngwie on September 15, 2003, 12:31:51 AM

Please,

As we do for .hex in FLASH, how can i upload a .hex file directly in EEPROM?

Yngwie
Title: Re: Problem programming LPC932 with FlashMagic
Post by: Andy Ayre on September 15, 2003, 02:53:16 PM
The LPC932 does not support ISP access to the EEPROM. I can think of two solutions, and I'm sure there are more:

1. Write a small program that copies data from Flash to EEPROM. You can then download and execute this before downloading and executing your application code.

2. Write an EEPROM loader that accepts data from the UART (sent using a terminal program) and programs the EEPROM.

Title: Re: Problem programming LPC932 with FlashMagic
Post by: Hitesh on December 21, 2004, 10:05:28 PM
hello Yngwie,

a smarter way:
if you have free program space (and if you can afford few msec delay on every boot!) then you can implement like:

keep data you want in eprom, as ap a part program code. on every boot call a routine. that  checks first 1-2 bytes of eeprom for existance of data (or generate checksum & verify, abetter approach).

if data not there in eeprom, continue execute copying from prog-memory to EEPROM, and then jump to your application program.

if data is there in eeprom, then jump to your application program.

regards
hitesh mahant
www.vital4all.com