EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Cannot programm LPC2106 (ISP - RS232)

Started by jkazubek October 22, 2006
Hello

I've recently bought an evaluation board with LPC2106 on it. When I
try to read the deivices ID it is sometimes succesful and sometimes
not. I've tried to dowload from flash but after a random amount of
time (part of the flash content appears in the program) the program
(Philips LPC2000 flash utility) says "Cannot communicate with test
board". I'm not using any converters such as USB->RS232. In this PDF
(http://www.btc.pl/pdf/zl2arm.pdf) there is a schematic of the test
board (text is in Polish but it doesn't matter). Please help me with
this problem.

Thank you !

Kuba

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "jkazubek"
To:
Sent: Sunday, October 22, 2006 9:57 PM
Subject: [lpc2000] Cannot programm LPC2106 (ISP - RS232)
> Hello
>
> I've recently bought an evaluation board with LPC2106 on it. When I
> try to read the deivices ID it is sometimes succesful and sometimes
> not. I've tried to dowload from flash but after a random amount of
> time (part of the flash content appears in the program) the program
> (Philips LPC2000 flash utility) says "Cannot communicate with test
> board". I'm not using any converters such as USB->RS232. In this PDF
> (http://www.btc.pl/pdf/zl2arm.pdf) there is a schematic of the test
> board (text is in Polish but it doesn't matter). Please help me with
> this problem.

It sounds like a hardware problem. Have you asked the supplier about it?

Leon
--- In l..., "jkazubek" wrote:
>
> Hello
>
> I've recently bought an evaluation board with LPC2106 on it. When I
> try to read the deivices ID it is sometimes succesful and sometimes
> not. I've tried to dowload from flash but after a random amount of
> time (part of the flash content appears in the program) the program
> (Philips LPC2000 flash utility) says "Cannot communicate with test
> board". I'm not using any converters such as USB->RS232. In this PDF
> (http://www.btc.pl/pdf/zl2arm.pdf) there is a schematic of the test
> board (text is in Polish but it doesn't matter). Please help me with
> this problem.
>
> Thank you !
>
> Kuba
>

Have you tried different baud rates? I believe I have mine working at
115200 but somewhat slower, say 9600, might be useful to try.

That particular board has the features of letting the programming
software conotrol P0.14 and reset. As such, be certain you enable
this feature in the programming software - there's a checkbox.

Richard
--- In l..., "Leon Heller" wrote:
>
> ----- Original Message -----
> From: "jkazubek"
> To:
> Sent: Sunday, October 22, 2006 9:57 PM
> Subject: [lpc2000] Cannot programm LPC2106 (ISP - RS232)
> > Hello
> >
> > I've recently bought an evaluation board with LPC2106 on it. When I
> > try to read the deivices ID it is sometimes succesful and sometimes
> > not. I've tried to dowload from flash but after a random amount of
> > time (part of the flash content appears in the program) the program
> > (Philips LPC2000 flash utility) says "Cannot communicate with test
> > board". I'm not using any converters such as USB->RS232. In this PDF
> > (http://www.btc.pl/pdf/zl2arm.pdf) there is a schematic of the test
> > board (text is in Polish but it doesn't matter). Please help me with
> > this problem.
>
> It sounds like a hardware problem. Have you asked the supplier about it?
>
> Leon
>
In looking at the datasheet, I notice that it states a 12 MHz crystal.
It doesn't say 12.2880 MHz. From the LPC2106 User Manual, Table 145,
there is no compatible baud rate for a 12 MHz crystal and the 12.2880
MHz would only work at 9600, 19200 and 38400.

I would give serious thought to changing the crystal to 14.7456 MHz.
All the baud rates work clear up to 230,000.

Richard
--- In l..., "rtstofer" wrote:
>
> --- In l..., "Leon Heller" wrote:
> >
> > ----- Original Message -----
> > From: "jkazubek"
> > To:
> > Sent: Sunday, October 22, 2006 9:57 PM
> > Subject: [lpc2000] Cannot programm LPC2106 (ISP - RS232)
> >
> >
> > > Hello
> > >
> > > I've recently bought an evaluation board with LPC2106 on it. When I
> > > try to read the deivices ID it is sometimes succesful and sometimes
> > > not. I've tried to dowload from flash but after a random amount of
> > > time (part of the flash content appears in the program) the program
> > > (Philips LPC2000 flash utility) says "Cannot communicate with test
> > > board". I'm not using any converters such as USB->RS232. In this
PDF
> > > (http://www.btc.pl/pdf/zl2arm.pdf) there is a schematic of the test
> > > board (text is in Polish but it doesn't matter). Please help me
with
> > > this problem.
> >
> > It sounds like a hardware problem. Have you asked the supplier
about it?
> >
> > Leon
> >
> In looking at the datasheet, I notice that it states a 12 MHz crystal.
> It doesn't say 12.2880 MHz. From the LPC2106 User Manual, Table 145,
> there is no compatible baud rate for a 12 MHz crystal and the 12.2880
> MHz would only work at 9600, 19200 and 38400.
>
> I would give serious thought to changing the crystal to 14.7456 MHz.
> All the baud rates work clear up to 230,000.
>
> Richard
>
A closer reading of the datasheet implies that 19200 baud is the way
to go. Like I can read Polish... It's blurred but I think the ISP
form shows the crystal frequency as 12.288 MHz.

It's amazing what you can get out of a datasheet in a foreign language
just from the context. I don't read a single word of Polish but I can
catch much of what is going on from the pictures and the English words.

Richard
Thanks for your reply.

I was thinking about changing the xtal but I was afraid of loosing the
guarantee service. Besides uC had to be programmed by the supplier
with the demo program. Maybe the crystal oscillator changed its
frequency during "delicate" shipping.... When I have the board back
I'll check it and post a message.
Kuba

Memfault Beyond the Launch