EmbeddedRelated.com
Forums

Keil MCB2360 (LPC2368) ISP synchronize problems

Started by toohgr August 1, 2007
Hello from a group newbie = )

I got myself a brand MCB2360 board recently and have played around
with it for some time now but when my curiosity turned towards the
embedded ISP bootloader I had hard trouble getting into it.

It's about 1 try out of 20 or so I enters the ISP.

I hooked up a scope to see whats going on at the COM-port and there
it was. Sending the '?' in all these normal values ranging from 110
upwards thru 9600 and onto 115200 bps the returning characters were
at a 8-9% higher bitrate in sub 9600 bps runs and increasing more at
higher bitrates.

I have increased my success rate substantially sending the '?' as "2
characters back-back in 14400 with 2 stopbits" making it 9600-9% bps.
This is not at all that practical to do but once synchronized I'm
removing the "reset jumper" and can use any terminal in 9600...

Any ideas whats the problem?

In case it matters the CPU is marked:
LPC2368FBD100
SG0978.1 03
ZSG0701-Y

Regards
/Henrik

An Engineer's Guide to the LPC2100 Series

Hi,

All ISP commands are supposed to have at the end. In some
LPC2368 versions (especially those mounted on MCB2300 boards), there
is some bug with the bootloader that it doesn't respond to commands
that have at the end. I modified LPC21ISP (found at
http://sourceforge.net/projects/lpc21isp/) to not transmit or
expect in responses. After which I was able to program the
LPC2368 mounted on my MCB2300 via ISP (using LPC21ISP, ofcourse).

Newer LPC2368 batches don't have this problem. They can easily be
programmed via tools like FlashMagic.

Hope this answers your questions.
Regards,
Shahzeb

--- In l..., "toohgr" wrote:
>
> Hello from a group newbie = )
>
> I got myself a brand MCB2360 board recently and have played around
> with it for some time now but when my curiosity turned towards the
> embedded ISP bootloader I had hard trouble getting into it.
>
> It's about 1 try out of 20 or so I enters the ISP.
>
> I hooked up a scope to see whats going on at the COM-port and there
> it was. Sending the '?' in all these normal values ranging from 110
> upwards thru 9600 and onto 115200 bps the returning characters were
> at a 8-9% higher bitrate in sub 9600 bps runs and increasing more at
> higher bitrates.
>
> I have increased my success rate substantially sending the '?' as "2
> characters back-back in 14400 with 2 stopbits" making it 9600-9% bps.
> This is not at all that practical to do but once synchronized I'm
> removing the "reset jumper" and can use any terminal in 9600...
>
> Any ideas whats the problem?
>
> In case it matters the CPU is marked:
> LPC2368FBD100
> SG0978.1 03
> ZSG0701-Y
>
> Regards
> /Henrik
>
Hi again, : )

Right, I forgot to include: ISP version is 1.3

I have no problems at all once synchronized, all commands works like
a charm. Well, I go for your explanation regarding earlier samples
with a bug and hope this is not an issue anymore .

I do tend to like the idea of programming the chip thru the COM-port
more than of the JTAG-link...

Thanx for your quick response = )
/Henrik

--- In l..., "Shahzeb Ihsan"
wrote:
>
> Hi,
>
> All ISP commands are supposed to have at the end. In some
> LPC2368 versions (especially those mounted on MCB2300 boards), there
> is some bug with the bootloader that it doesn't respond to commands
> that have at the end. I modified LPC21ISP (found at
> http://sourceforge.net/projects/lpc21isp/) to not transmit or
> expect in responses. After which I was able to program the
> LPC2368 mounted on my MCB2300 via ISP (using LPC21ISP, ofcourse).
>
> Newer LPC2368 batches don't have this problem. They can easily be
> programmed via tools like FlashMagic.
>
> Hope this answers your questions.
> Regards,
> Shahzeb
>
> --- In l..., "toohgr" wrote:
> >
> > Hello from a group newbie = )
> >
> > I got myself a brand MCB2360 board recently and have played
around
> > with it for some time now but when my curiosity turned towards
the
> > embedded ISP bootloader I had hard trouble getting into it.
> >
> > It's about 1 try out of 20 or so I enters the ISP.
> >
> > I hooked up a scope to see whats going on at the COM-port and
there
> > it was. Sending the '?' in all these normal values ranging from
110
> > upwards thru 9600 and onto 115200 bps the returning characters
were
> > at a 8-9% higher bitrate in sub 9600 bps runs and increasing more
at
> > higher bitrates.
> >
> > I have increased my success rate substantially sending the '?'
as "2
> > characters back-back in 14400 with 2 stopbits" making it 9600-9%
bps.
> > This is not at all that practical to do but once synchronized I'm
> > removing the "reset jumper" and can use any terminal in 9600...
> >
> > Any ideas whats the problem?
> >
> > In case it matters the CPU is marked:
> > LPC2368FBD100
> > SG0978.1 03
> > ZSG0701-Y
> >
> > Regards
> > /Henrik
>