Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: njwork on September 14, 2006, 08:24:15 PM

Title: LPC2132 Hex File Program Error
Post by: njwork on September 14, 2006, 08:24:15 PM
In MY Lpc2132 Hex file  first line is
:020000040000FA
:1030000018F09FE518F09FE518F09FE518F09FE590
....
program from 0x3000 start ,but Used flash magic program at 0x0000-0x0001 Address Write 00 00 code .
    my hex file first line is
         :020000040000FA

   not is
        :020000000000FE

please help me !
Title: Re: LPC2132 Hex File Program Error
Post by: Andy Ayre on September 15, 2006, 07:05:52 AM
This should be fixed in the latest version. Please try it and let me know.

Title: Re: LPC2132 Hex File Program Error
Post by: njwork on September 15, 2006, 06:39:08 PM
I'm using Flash Magic (V3.27.130) .ARM Driver Version 1.13.128
I  Try it  again ,error again .

Lpc2132 Hex file first line is
:020000040000FA
:1030000018F09FE518F09FE518F09FE518F09FE590
....

so i now  write a program delete Hex First Line Then Program .

problem 2

Erase lpc2132 block 8 Used Erase(0x80,protectisp) ,result Ok!
but Erase lpc2132 block 9 Used Erase(0x100,protectisp) ,result error!
Soft Display:
ERROR: Invalid parameters for ERASE directive: erase(0x100,protectisp)

so I only use ERASEUSED(c:\tst.hex,PROTECTISP

Author: Andrew Ayre
Date:   09-15-06 11:29

The ERASE command recently changed. The first parameter should be the number of the block (0 to n). Make sure you are using the latest version of FM.

now i try it ,my command line is
"C:\Program Files\Flash Magic\FM.EXE" "COM(1,57600) DEVICE(LPC2132,11.59200) ERASE(1,PROTECTISP)  HEXFILE("C:\TEMP\Host.HEX",NOCHECKSUMS,NOFILL,PROTECTISP) "

lpc2132 have 9 blocks,I Use Fm  command  ERASE(1,PROTECTISP) result erase flash 0x00-0xfff. block 1
ERASE(2,PROTECTISP) erase 0x1000-0x1fff    block 2
ERASE(4,PROTECTISP) erase 0x2000-0x2fff block 3
but  ERASE(3,PROTECTISP) erase 0x0000-0x1fff   (block 1 2)
so analogically I Erase block 9 Used  ERASE(0x100,PROTECTISP) but error
Title: Re: LPC2132 Hex File Program Error
Post by: Andy Ayre on September 19, 2006, 01:54:26 PM
Both these problems will be fixed in the next release (3.28), which should be available this week. Thanks for letting us know!