Author Topic: Problem programming LPC932 with FlashMagic  (Read 6001 times)

Yngwie

  • Guest
Problem programming LPC932 with FlashMagic
« 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2178
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Problem programming LPC932 with FlashMagic
« Reply #1 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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Hitesh

  • Guest
Re: Problem programming LPC932 with FlashMagic
« Reply #2 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