Reply by "Glazar, Bostjan" June 24, 20082008-06-24
> Furthermore, when I switch my board on, it consumes about 90mA (there is only the LPC2138 and the ISP part). After using the Flash Magic utility (failed to autobaud - step 1), it consumes about 30mA...

> Does someone as an idea to explain my problem ?

The ISP configures the PLL to run the MCU at a certain clock (I don't know the exact settings). If you don't use the PLL in you application, the MCU might run at a lower frequency, therefore consuming less power.

The other possible reason was already decribed by Danish.


An Engineer's Guide to the LPC2100 Series

Reply by Titi Toon June 23, 20082008-06-23
Thank you Danish and
Robert.
When I put a pull down on P0.14, the ISP works.

Thank you.
--- On Mon, 6/23/08, Danish Ali wrote:
From: Danish Ali
Subject: [lpc2000] Re: LPC2138 one time programmable ?
To: l...
Date: Monday, June 23, 2008, 4:01 PM

I disagree.

If the checksum for your code is not valid

(e.g. a new chip), the bootloader waits forever

for Flash Utility to connect.

You do not need P0.14 and Reset to be wired

correctly for this to work.

----

If the checksum for your code _is_ valid (e.g. after download)

then the bootloader looks at P0.14 soon after RESET is

released (typically 3 ms).

If P0.14 is asserted, the bootloader waits forever

for a download, so the Flash Utility can connect.

If P0.14 is _not_ asserted, then your program is run.

Therefore to download _again_, you _do_ need both

P0.14 and Reset to be controlled correctly.

----

I am not sure what to read into the current consumption

information. Consumption will be excessive because you

have many inputs floating, and that allow class-A current

to flow in the input transistors.

Regards,

Danish

--- In lpc2000@yahoogroups .com, Titi Toon wrote:

>

> Thank you again for your answers, but the ISP works if I change the

MCU for a new one. That means that the control of RESET and P0.14 is

good, and I have checked it too.

> About the ISP, I copied the schematics from MCB2138. And I have many

other boards with the same schematics of ISP that work.

>

> Furthermore, when I switch my board on, it consumes about 90mA

(there is only the LPC2138 and the ISP part). After using the Flash

Magic utility (failed to autobaud - step 1), it consumes about 30mA...

>

> Does someone as an idea to explain my problem ?

>

> Thank you.

> Jerome

>

> --- On Mon, 6/23/08, Danish Ali wrote:

> From: Danish Ali

> Subject: [lpc2000] Re: LPC2138 one time programmable ?

> To: lpc2000@yahoogroups .com

> Date: Monday, June 23, 2008, 3:12 PM

>

>

> I agree with Foltos:

> In order to overwrite a program where the checksum is good,

> the Flash Utility / ISP must be able to control RESET and P0.14.

> On demo boards I have seen, these pins _can_be_ controlled

> from the RTS and DTR lines on the ISP serial interface

> provided you put the appropriate links in place on the board.

> You need those links to select for remote control of those

> pins. And you must tell the Flash Utility to use DTR/RTS

> for bootloader selection.

>

> Hope this helps,

> Danish


Reply by Danish Ali June 23, 20082008-06-23
I disagree.

If the checksum for your code is not valid
(e.g. a new chip), the bootloader waits forever
for Flash Utility to connect.

You do not need P0.14 and Reset to be wired
correctly for this to work.

----

If the checksum for your code _is_ valid (e.g. after download)
then the bootloader looks at P0.14 soon after RESET is
released (typically 3 ms).

If P0.14 is asserted, the bootloader waits forever
for a download, so the Flash Utility can connect.

If P0.14 is _not_ asserted, then your program is run.

Therefore to download _again_, you _do_ need both
P0.14 and Reset to be controlled correctly.

----

I am not sure what to read into the current consumption
information. Consumption will be excessive because you
have many inputs floating, and that allow class-A current
to flow in the input transistors.

Regards,
Danish

--- In l..., Titi Toon wrote:
>
> Thank you again for your answers, but the ISP works if I change the
MCU for a new one. That means that the control of RESET and P0.14 is
good, and I have checked it too.
> About the ISP, I copied the schematics from MCB2138. And I have many
other boards with the same schematics of ISP that work.
>
> Furthermore, when I switch my board on, it consumes about 90mA
(there is only the LPC2138 and the ISP part). After using the Flash
Magic utility (failed to autobaud - step 1), it consumes about 30mA...
>
> Does someone as an idea to explain my problem ?
>
> Thank you.
> Jerome
>
> --- On Mon, 6/23/08, Danish Ali wrote:
> From: Danish Ali
> Subject: [lpc2000] Re: LPC2138 one time programmable ?
> To: l...
> Date: Monday, June 23, 2008, 3:12 PM
>
>
> I agree with Foltos:
> In order to overwrite a program where the checksum is good,
> the Flash Utility / ISP must be able to control RESET and P0.14.
> On demo boards I have seen, these pins _can_be_ controlled
> from the RTS and DTR lines on the ISP serial interface
> provided you put the appropriate links in place on the board.
> You need those links to select for remote control of those
> pins. And you must tell the Flash Utility to use DTR/RTS
> for bootloader selection.
>
> Hope this helps,
> Danish

Reply by "sub...@aeolusdevelopment.com" June 23, 20082008-06-23
Titi Toon Wrote
>Thank you again for your answers, but the ISP works if I change the MCU
for a new one. >That means that the control of RESET and P0.14 is good

No it doesn't, a blank MCU will start in ISP mode so the state of P0.14 is
not relevant in that case.

Robert
--------------------------------
myhosting.com - Premium Microsoft Windows and Linux web and application
hosting - http://link.myhosting.com/myhosting

Reply by "Charles R. Grenz" June 23, 20082008-06-23
titi_toon wrote:
> Hello,
>
> I have made my own board (it's not the first) and the ISP (read device
> signature) works, but i can program the LPC2138 (or 2132) only once.
> Then the quartz oscillates but the LPC2138 doesn't execute the code
> and the ISP (read device signature) doesn't work anymore...
> My schematics around the LPC2138 are the same with other boards that
> work fine.
> Does someone have an idea to explain it ?
>

Hi Jerome,

What is the status of P1.20 and P0.31 on power up? The P1.20 line of forced low on power up will put the chip in ETM mode. If P0.30 is low on reset then the JTAG lines will be running (if memory serves me correctly).

regards,
Charles
Reply by "B. van Essen" June 23, 20082008-06-23
Sometime it helps to pull the P0.14 manualy hig or low (a don't know) en hold
it when programming, that wil make the mic programmable again, it did for me
sometimes

maybe also with your mic

goodluck bertus
Citeren titi_toon :

> Hello,
>
> I have made my own board (it's not the first) and the ISP (read device
> signature) works, but i can program the LPC2138 (or 2132) only once.
> Then the quartz oscillates but the LPC2138 doesn't execute the code
> and the ISP (read device signature) doesn't work anymore...
> My schematics around the LPC2138 are the same with other boards that
> work fine.
> Does someone have an idea to explain it ?
>
> Thank you.
>
> Jerome

Reply by Titi Toon June 23, 20082008-06-23
Thank you again for your answers, but the ISP works if I change the MCU for a new one. That means that the control of RESET and P0.14 is good, and I have checked it too.
About the ISP, I copied the schematics from MCB2138. And I have many other boards with the same schematics of ISP that work.

Furthermore, when I switch my board on, it consumes about 90mA (there is only the LPC2138 and the ISP part). After using the Flash Magic utility (failed to autobaud - step 1), it consumes about 30mA...

Does someone as an idea to explain my problem ?

Thank you.
Jerome

--- On Mon, 6/23/08, Danish Ali wrote:
From: Danish Ali
Subject: [lpc2000] Re: LPC2138 one time programmable ?
To: l...
Date: Monday, June 23, 2008, 3:12 PM

I agree with Foltos:

In order to overwrite a program where the checksum is good,

the Flash Utility / ISP must be able to control RESET and P0.14.

On demo boards I have seen, these pins _can_be_ controlled

from the RTS and DTR lines on the ISP serial interface

provided you put the appropriate links in place on the board.

You need those links to select for remote control of those

pins. And you must tell the Flash Utility to use DTR/RTS

for bootloader selection.

Hope this helps,

Danish

--- In lpc2000@yahoogroups .com, "titi_toon" wrote:

>

> Hello,

>

> I have made my own board (it's not the first) and the ISP (read device

> signature) works, but i can program the LPC2138 (or 2132) only once.

> Then the quartz oscillates but the LPC2138 doesn't execute the code

> and the ISP (read device signature) doesn't work anymore...

> My schematics around the LPC2138 are the same with other boards that

> work fine.

> Does someone have an idea to explain it ?

>

> Thank you.

>

> Jerome

>


Reply by Danish Ali June 23, 20082008-06-23
I agree with Foltos:

In order to overwrite a program where the checksum is good,
the Flash Utility / ISP must be able to control RESET and P0.14.

On demo boards I have seen, these pins _can_be_ controlled
from the RTS and DTR lines on the ISP serial interface
provided you put the appropriate links in place on the board.

You need those links to select for remote control of those
pins. And you must tell the Flash Utility to use DTR/RTS
for bootloader selection.

Hope this helps,
Danish
--- In l..., "titi_toon" wrote:
>
> Hello,
>
> I have made my own board (it's not the first) and the ISP (read device
> signature) works, but i can program the LPC2138 (or 2132) only once.
> Then the quartz oscillates but the LPC2138 doesn't execute the code
> and the ISP (read device signature) doesn't work anymore...
> My schematics around the LPC2138 are the same with other boards that
> work fine.
> Does someone have an idea to explain it ?
>
> Thank you.
>
> Jerome
>

Reply by Foltos June 23, 20082008-06-23
Hi,

I don't know if this applies to your chip, but LPC214x chips have a ROM
boot-loader. This will start an application if the check-sum value in
the vector table (reserved vector at 0x14) is correct. If so the ROM
boot-loader will remain active only is some pins are pulled to proper
states during reset.
Your symptoms could be caused by this (e.g the downloaded app is
started, and the ROM boot-loader is not running any more).

Foltos

titi_toon wrote:
> Hello,
>
> I have made my own board (it's not the first) and the ISP (read device
> signature) works, but i can program the LPC2138 (or 2132) only once.
> Then the quartz oscillates but the LPC2138 doesn't execute the code
> and the ISP (read device signature) doesn't work anymore...
> My schematics around the LPC2138 are the same with other boards that
> work fine.
> Does someone have an idea to explain it ?
>
> Thank you.
>
> Jerome
>
Reply by Titi Toon June 23, 20082008-06-23
Hi,

Thank you for your answer. P0.14 works fine, and if i change the MCU for a new one, ISP will work (at 38400bps with a 12MHz quartz). Do you have another idea ?

Thank you.
Jerome


--- In lpc2000@yahoogroups .com, "titi_toon" wrote:

>

> Hello,

>

> I have made my own board (it's not the first) and the ISP (read device

> signature) works, but i can program the LPC2138 (or 2132) only once.

> Then the quartz oscillates but the LPC2138 doesn't execute the code

> and the ISP (read device signature) doesn't work anymore...

> My schematics around the LPC2138 are the same with other boards that

> work fine.

> Does someone have an idea to explain it ?

>

> Thank you.

>

> Jerome

>

hi

check the pin p0.14 if is gnd not work

second check the baudrate of isp programer 2400bps or slow

beter use jtag

www.hjtag.com

br dan