command line programming LPC932

Started by Helmuth Lechner, November 25, 2004, 06:55:03 AM

Previous topic - Next topic

Helmuth Lechner

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:

Andy Ayre

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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Helmuth Lechner

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

Andy Ayre

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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Helmuth Lechner

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)

Andy Ayre

Now email me the file C:\flashmagic.fmd.

Embedded Systems Academy, Inc.
support at esacademy dot com

Andy Ayre

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

Embedded Systems Academy, Inc.
support at esacademy dot com

Alireza

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.
>
>


Andy Ayre

Sorry, only Philips Flash microcontrollers supported here. Try asking in the forum on 8052.com.

Embedded Systems Academy, Inc.
support at esacademy dot com

Helmuth Lechner

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>

Andy Ayre

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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Martin

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

Andy Ayre

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.

Embedded Systems Academy, Inc.
support at esacademy dot com

Helmuth Lechner

What's real the problem?
I leave still with this problems!
Best regards
Helmuth

Andy Ayre

Did you try my suggestions that I posted above (back in January)?

Embedded Systems Academy, Inc.
support at esacademy dot com