Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: Werner on January 29, 2020, 05:24:47 AM

Title: FlashMagic 12.75 doesn't erase/program LPC2129
Post by: Werner on January 29, 2020, 05:24:47 AM
Hallo,

i found that FlashMagic 12.75 cannot erase/program an LPC2129 anymore. Reading device signature works well.

I took a terminal program in order to watch for differences between FlashMagic 11.20 (erase/program works well) and FlashMagic 12.75 and found that FlashMagic 12.75 sends an oscillator frequency of 0. With that the erase command stalls inside the LPC2129.

FlashMagic 11.20 has a field for an adjustble oscillator frequency which is filled with 12.000 MHz by default. The LPC2129 has no internal RC-oscillator but always runs on the external crystal. So the LPC2129 needs this number for the erase/program timing.
I tried to set the oscillator frequency to 0 in FlashMagic 11.20. Then the LPC2129 stalls again. Setting a frequency of 100 MHz makes erasing very slow.


FlashMagic 11.20 LPC2129 Erase all command, sent:
?Synchronized<\r><\n>12000<\r><\n>J<\r><\n>U 23130<\r><\n>P 0 16<\r><\n>E 0 16<\r><\n>

FlashMagic 12.75 LPC2129 Erase all command, sent:
?Synchronized<\r><\n>0<\r><\n>J<\r><\n>U 23130<\r><\n>P 0 16<\r><\n>E 0 16<\r><\n>
Title: Re: FlashMagic 12.75 doesn't erase/program LPC2129
Post by: Werner on January 29, 2020, 06:28:12 AM
Ok, I found the oscilator frequency field has moved to View->Preferences->Hardware.
Unfortunately the import of an old .fms file doesn't fill this field.
Title: Re: FlashMagic 12.75 doesn't erase/program LPC2129
Post by: Andy Ayre on February 03, 2020, 08:32:24 AM
OK, that is something we can address for the next release - thanks for letting us know. Andy