Author Topic: LPC2387 ISP auto baud problem In ISP  (Read 45965 times)

seema

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
LPC2387 ISP auto baud problem In ISP
« on: June 04, 2009, 12:08:05 am »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #1 on: June 04, 2009, 08:44:18 am »
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

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #2 on: June 04, 2009, 10:45:34 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #3 on: June 05, 2009, 09:50:13 am »
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

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #4 on: June 05, 2009, 09:09:40 pm »


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.




« Last Edit: June 08, 2009, 02:29:55 am by seema »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #5 on: June 08, 2009, 09:17:43 am »
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

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #6 on: June 08, 2009, 09:25:05 pm »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #7 on: June 09, 2009, 09:39:56 am »
Please generate and post a debug file. Instructions are here:

http://www.flashmagictool.com/debugfile.html

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

seema

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #8 on: June 09, 2009, 09:09:31 pm »
Please see the file attached after dedug.



Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #9 on: June 10, 2009, 01:59:25 pm »
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

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #10 on: June 10, 2009, 09:22:20 pm »
 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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #11 on: June 11, 2009, 09:31:04 am »
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
« Last Edit: June 11, 2009, 09:36:58 am by Andy Ayre »
Embedded Systems Academy, Inc.
support at esacademy dot com

seema

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #12 on: June 12, 2009, 12:09:49 am »
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

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #13 on: June 12, 2009, 12:19:05 am »
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

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2176
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: LPC2387 ISP auto baud problem In ISP
« Reply #14 on: June 12, 2009, 09:02:02 am »
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