Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: Helmuth Lechner on November 25, 2004, 06:55:03 AM

Title: command line programming LPC932
Post by: Helmuth Lechner on November 25, 2004, 06:55:03 AM
Hallo!
What's wrong in my batch-file. Every second time the programming of the same controller is mismatched?
The command line had following contents:
Title: Re: command line programming LPC932
Post by: Andy Ayre on November 29, 2004, 08:25:28 AM
You are programming without erasing first. Insert an ERASE directive.

What do you mean by mismatched? What error message or output are you getting?

See if the problem is that you are not erasing and let me know.

Title: Re: command line programming LPC932
Post by: Helmuth Lechner on December 01, 2004, 04:09:23 AM
Hallo Andrew,
I have insert the ERASE-command, but the same result:
The first programming of the same device works well. The second call of the batch file will not completed worked down. The screen printout has the following condense:
"
Configuration: 0x20
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Hex file programming complete (Freq112.hex)
Device configured (0x000000A0)
Configuration: 0xA0

C:\Programme\Flash Magic>f

C:\Programme\Flash Magic>FM com(1,9600) DEVICE(89LPC932,20.000) HARDWARE(KEILMCB
900, 250, 125) readconfig CONFIG(0x20) readconfig erase(DEVICE, PROTECTISP) hexf
ile(Freq112.hex, NOCHECKSUMS, NOFILL, PROTECTISP) CONFIG(0xA0) readconfig
Flash Magic Version 2.07
(DLL Version 1.74)
(C) Embedded Systems Academy 2000-2004 All rights reserved
Connected
Device selected
Configuration: 0xA0
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Configuration read failed: com port error

C:\Programme\Flash Magic>
"
You can see, the second call is broken down by the ERASE-command!
Thanks for you help!
Best regards
Helmuth Lechner
Title: Re: command line programming LPC932
Post by: Andy Ayre on December 01, 2004, 06:26:49 AM
OK, Please add the "DEBUG" directive, run both times (first working, second fails) and Email me the generated debug file C:\flashmagic.fmd. Make sure you delete C:\flashmagic.fmd afterwards.

My email address is below and in the Help -> About window of Flash Magic.

Hopefully this will let me see what is going on.

Title: Re: command line programming LPC932
Post by: Helmuth Lechner on December 06, 2004, 01:55:52 AM
OK, I have add the "DEBUG" directive in the batch-file. The result see downstairs:
"
C:\Programme\Flash Magic>f

C:\Programme\Flash Magic>FM.exe debug com(1,9600) DEVICE(89LPC932,20.000) HARDWA
RE(KEILMCB900, 250, 125) readconfig CONFIG(0x20) readconfig erase(DEVICE, PROTEC
TISP) hexfile(Freq112.hex, NOCHECKSUMS, NOFILL, PROTECTISP) CONFIG(0xA0) readcon
fig
Flash Magic Version 2.07
(DLL Version 1.74)
(C) Embedded Systems Academy 2000-2004 All rights reserved
Connected
Device selected
Configuration: 0x20
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Hex file programming complete (Freq112.hex)
Device configured (0x000000A0)
Configuration: 0xA0

C:\Programme\Flash Magic>

C:\Programme\Flash Magic>f

C:\Programme\Flash Magic>FM.exe debug com(1,9600) DEVICE(89LPC932,20.000) HARDWA
RE(KEILMCB900, 250, 125) readconfig CONFIG(0x20) readconfig erase(DEVICE, PROTEC
TISP) hexfile(Freq112.hex, NOCHECKSUMS, NOFILL, PROTECTISP) CONFIG(0xA0) readcon
fig
Flash Magic Version 2.07
(DLL Version 1.74)
(C) Embedded Systems Academy 2000-2004 All rights reserved
Connected
Device selected
Configuration: 0xA0
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Configuration read failed: com port error

C:\Programme\Flash Magic>

C:\Programme\Flash Magic>
"
You see the same result. The first call runs well, the second was broken down at ERASE.
Best regards
Helmuth



Post Edited (12-06-04 10:30)
Title: Re: command line programming LPC932
Post by: Andy Ayre on December 06, 2004, 10:10:13 AM
Now email me the file C:\flashmagic.fmd.

Title: Re: command line programming LPC932
Post by: Andy Ayre on December 07, 2004, 06:50:11 AM
It looks to me like the baud rate is marginal. Try using 7200 and tell me if that helps.

Title: Re: command line programming LPC932
Post by: Alireza on December 29, 2004, 07:49:52 PM
hi, my friends
i need to software for programming of 89S52.
my email:younesi@patsaind.com
bestregard  Andrew Ayre wrote:

> It looks to me like the baud rate is marginal. Try using 7200
> and tell me if that helps.
>
>

Title: Re: command line programming LPC932
Post by: Andy Ayre on December 29, 2004, 07:55:37 PM
Sorry, only Philips Flash microcontrollers supported here. Try asking in the forum on 8052.com.

Title: Re: command line programming LPC932
Post by: Helmuth Lechner on January 18, 2005, 01:34:40 AM
Hi Andrew!
At first a happy New Year! Thanks for hint to the new Startup file. I had it downloaded and compiling my project again. But the result are the same. After sekond time progamming the same device, the programming procedure is stoped at the eraese command. When I used the WIDOWS version of FlashMagic, I could prorammed 2 times, 3 times the same device without problems.
What the reason of this buck?
Best regards!
Helmuth

Dos-Screen has folwed contence:

Microsoft(R) Windows 98
   (C)Copyright Microsoft Corp 1981-1999.

C:\WINDOWS>flash

C:\WINDOWS>cd c:\programme\flashm~1

C:\Programme\Flash Magic>
C:\Programme\Flash Magic>

C:\Programme\Flash Magic>f

C:\Programme\Flash Magic>FM debug com(1,9600) DEVICE(89LPC932,20.000) HARDWARE(K
EILMCB900, 250, 125) readconfig CONFIG(0x20) readconfig erase(DEVICE, PROTECTISP
) hexfile(Freq112.hex, NOCHECKSUMS, NOFILL, PROTECTISP) CONFIG(0xA0) readconfig
Flash Magic Version 2.07
(DLL Version 1.74)
(C) Embedded Systems Academy 2000-2004 All rights reserved
Connected
Device selected
Configuration: 0x23
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Hex file programming complete (Freq112.hex)
Device configured (0x000000A0)
Configuration: 0xA0

C:\Programme\Flash Magic>

C:\Programme\Flash Magic>f

C:\Programme\Flash Magic>FM debug com(1,9600) DEVICE(89LPC932,20.000) HARDWARE(K
EILMCB900, 250, 125) readconfig CONFIG(0x20) readconfig erase(DEVICE, PROTECTISP
) hexfile(Freq112.hex, NOCHECKSUMS, NOFILL, PROTECTISP) CONFIG(0xA0) readconfig
Flash Magic Version 2.07
(DLL Version 1.74)
(C) Embedded Systems Academy 2000-2004 All rights reserved
Connected
Device selected
Configuration: 0xA0
Device configured (0x00000020)
Configuration: 0x20
Erase complete (DEVICE)
Configuration read failed: com port error

C:\Programme\Flash Magic>

C:\Programme\Flash Magic>
Title: Re: command line programming LPC932
Post by: Andy Ayre on January 18, 2005, 07:33:10 AM
I suggested using 7200 baud before. Did you try that? If that doesn't work then I would suggest trying another device and/or another PC. For some reason the baud rate at one end is changing while data is being sent.

Title: Re: command line programming LPC932
Post by: Martin on November 04, 2005, 02:53:47 AM
I thing, that it is W98 problem,
because when you in 1 console opens com port by some programm (fm.exe)
it stills be open after programm ends, and second call of programm(fm.exe) check com port open by another programm.
Martin
Title: Re: command line programming LPC932
Post by: Andy Ayre on November 04, 2005, 06:48:37 AM
The previous problem in this thread does not indicate a problem opening the com port. It indicates that when a certain operation is performed, Flash Magic does not receive what it expects. If FM was not able to open the COM port then it wouldn't be able to do anything.

Title: Re: command line programming LPC932
Post by: Helmuth Lechner on November 07, 2005, 09:53:28 AM
What's real the problem?
I leave still with this problems!
Best regards
Helmuth
Title: Re: command line programming LPC932
Post by: Andy Ayre on November 07, 2005, 09:59:46 AM
Did you try my suggestions that I posted above (back in January)?

Title: Re: command line programming LPC932
Post by: Helmuth Lechner on January 24, 2006, 05:20:43 AM
Hallo!
Now there are a new problem. Always after programming the LPC932 in the HI-LO-Systems GANG-08P3 programmer, I could not program again this device in the MCB900 by Flash Magic! It's impossible to get connection to the device. If starting
Title: Re: command line programming LPC932
Post by: erikm on January 24, 2006, 06:33:27 AM
maybe the HI-LO-Systems GANG-08P3 programmer which I have never heard about erases the ISP code in the top sector.

Erik