LPC2387 ISP auto baud problem In ISP

Started by seema, June 04, 2009, 12:08:05 AM

Previous topic - Next topic

seema

Dear all,

I have developed the board for LPC2387.
I tried to do ISP programming  but the failure in the auto baud.
Then i tried to do Terminal ISP it responds OK for the independent ISP commands.
But the part ID given by NXP user manual  402716981.
for the chip LPC2387 is not matching with the part ID returned by the "J " command Part ID  385941301
I am doing with  the flash magic 4 .66 .

Please suggest to start ISP.



Regards
Seema JOshi

Andy Ayre

The LPC2387 has two signatures and you are listing both of them. Probably after FM 4.66 was released the second signature was added, so please try the current version of Flash Magic.

To investigate the ISP entry problem further see: http://www.flashmagictool.com/debugstart.html

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

Dear Sir,
I was trying with flash magic V 4.63
But recently i have down loaded for the  latest version 4.66.1635
Can you please confirm me the same is the latest ver. for flash magic.

Andy Ayre

The version number of the current version is displayed on the main Flash Magic page at:

  http://www.flashmagictool.com

You are not running the latest version.
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

#4


Dear sir,

Thanks for the replay!

Problem not solved  for LPC2387 ISP programing.with  flash magic 5.02.1667


When i run  terminal with setting

Baud rate 19200 & new line CR

? in the input window gives the
synchronized

synchronized in input window gives
OK

18432 in the input window gives
OK

J at input window gives
0
385941301

K at input window gives
0
3
3


After doing this if i go for the read security option

operation failed  failed to autobaud step-1


Please suggest me how to go or programming.





Andy Ayre

What happens if you reset your device then go to ISP -> Read Security without using the terminal first?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

First it comes     
attempting to connect..........in the action window

After aprox 5 sec. message comes.
Unable to communicate! Ensure no other application is not using the COM port.Try raising or lowering the baud rate (set to 19200)
After that tries with lowering thr baud rate 9600
the message comes
Opeartion failed to autobaud step -1

Andy Ayre

Embedded Systems Academy, Inc.
support at esacademy dot com

seema

Please see the file attached after dedug.



Andy Ayre

The device is supposed to echo back "Synchronized" a second time, but it is sending back junk. However I noticed that in your terminal test you used 19200 baud, but in the test involving the debug file you used 9600 baud. So I suggest trying 19200 baud as well and see if that helps.

When using the terminal you typed in "Synchronized". Did the device send "Synchronized" back followed by "OK" or just "OK"?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

 Thanks for the replay!


Now i am using flash magic 5.10.1672

In terminal test i am setting the 9600 & CR as option


Input windowafter type following commands

?Synchronized18432J
K


Output window
Synchronized
ëÞûþÿûÿd
OK
18432
OK
J
0
385941301
K
0
3
3

After this hardware reset & go to debug   F1 & select the option Read security

Unable to communicate Ensure no other application is using the com port,Try raising or lowering the baud rate message appears


As you asked i am receiving the garbage instead of the synchronized again.
Please suggest tell me in this case what i can do?






Andy Ayre

#11
OK, now I am confused. When you tried the terminal in 5.03 you didn't see the junk coming from the device, right? But with 5.10 you do see the junk?

I'm guessing the device was always sending the junk.

Please download PortMon from here:

http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx

Start capturing in PortMon then repeat your test in the terminal so you get some junk returned from the device. Then look at the capture in PortMon and find the same point in the transfer. Non-printable characters are shown as '.'. At the point where Flash Magic received junk did PortMon show receiving non-printable characters? If so then try switching to hex view and repeating the test. If the device seems to really be sending the junk then try another device.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

Hello sir,
I tried the five different boards of LPC2387 with the 9600,4800,19200 different baud rate in the terminal.
I am receiving the similar kind of the junk. please see the file as attached.

In JTAG the device works properly with PORT0.
Also other commands like J & K returns the proper data in the Terminal option of the ISP programimng.
Hence we can not say regarding the device is problematic.
Please confirm me what kind of problem is it?



seema

First i wanted to clear your confusion,.
Sorry from starting only I am receiving the junk.
But after that it is sending OK when I input the 'Enter ' key<CR> in the terminal. that is why i considered that data not as junk.



Andy Ayre

If Flash Magic receives something unexpected during autobauding then it cannot ignore it, as the autobauding process is only completed once. After that Flash Magic retries failed commands. So anything unexpected coming back is significant.

Furthermore, currently your devices are the only ones exhibiting this behavior. That would lead me to suspect the PC, serial cable, development board, device or power supply. Have you tried replacing those one by one?
Embedded Systems Academy, Inc.
support at esacademy dot com