Forums

Erratic booting LPC2119

Started by zerealbigboss July 30, 2008
Last year I bought two ARM LPC2119 stamps from Futurlec and did some
programming with Keil uV3 and the Philips flash utility. Rather
simple job: UART0 goes to a keyboard/screen with a PIC16F88, UART1 to
a Vodafone modem and there are a range of inputs and outputs.
Everything goes fine: bootloader accepts and installs program,
program runs and does what it should do. However, after a few times
uploading and resetting comes the problem: the program does not run
any more after a reset, but hangs before the first instruction; it is
past the bootloader stage, as there is no communication on UART0
possible. This misbehaving starts first with resetting via the reset
pin; then two or three times I can start it again by switching the
power off, but after a few times doing that it does
not do anything at all any more. When I leave it until the next day
or so it mostly runs immediately when I switch on the power and then
the cycle starts again: several times fine, a few times with
switching off, then nothing any more. It does not matter whether any
pins are connected to anything or not. Changing power supply did not
have any effect either.

Access to the boot loader is always functioning (pin P0.14 low) and
uploading/verifying a program always functions. It also makes no
difference which of the uP stamps I take; after a few cycles they do
not respond any more.

When a program ran well, I downloaded it from the chip and stored it;
when the uP then started to misbehave I uploaded that one back, but
to no avail: it did not start any more until a few days later. The
conclusion then is that my programming seems to be OK, that the Keil
and the flash unit work fine and that the error is on the board of
the stamp or on the LPC itself.

Any helpful comment?

An Engineer's Guide to the LPC2100 Series

Sounds very familiar. I replaced the capacitor closest to the reset button
with a 330nF.
After this the board boots reliably.

Regards
Anders

_____

From: l... [mailto:l...] On Behalf Of
zerealbigboss
Sent: den 29 juli 2008 06:16
To: l...
Subject: [lpc2000] Erratic booting LPC2119

Last year I bought two ARM LPC2119 stamps from Futurlec and did some
programming with Keil uV3 and the Philips flash utility. Rather
simple job: UART0 goes to a keyboard/screen with a PIC16F88, UART1 to
a Vodafone modem and there are a range of inputs and outputs.
Everything goes fine: bootloader accepts and installs program,
program runs and does what it should do. However, after a few times
uploading and resetting comes the problem: the program does not run
any more after a reset, but hangs before the first instruction; it is
past the bootloader stage, as there is no communication on UART0
possible. This misbehaving starts first with resetting via the reset
pin; then two or three times I can start it again by switching the
power off, but after a few times doing that it does
not do anything at all any more. When I leave it until the next day
or so it mostly runs immediately when I switch on the power and then
the cycle starts again: several times fine, a few times with
switching off, then nothing any more. It does not matter whether any
pins are connected to anything or not. Changing power supply did not
have any effect either.

Access to the boot loader is always functioning (pin P0.14 low) and
uploading/verifying a program always functions. It also makes no
difference which of the uP stamps I take; after a few cycles they do
not respond any more.

When a program ran well, I downloaded it from the chip and stored it;
when the uP then started to misbehave I uploaded that one back, but
to no avail: it did not start any more until a few days later. The
conclusion then is that my programming seems to be OK, that the Keil
and the flash unit work fine and that the error is on the board of
the stamp or on the LPC itself.

Any helpful comment?


No such luck; replacing that C did not change things. One of the two cards has given up completely: erasing, download and verification fine, running forget about that. The other card is still stumbling along, but with one download per day nowadays.

I have sent an email to the tech service at Futurlec: answer: mail returned because mailbox full. Then copy to webmaster, mail returned because mailbox full. Then copy to sales, no reaction at all. I suppose I better write off the development and Futurlec at the same time and set up the production with uprocessors from a different supplier.