EmbeddedRelated.com
Forums
Memfault Beyond the Launch

ISP on LPC2378 fails with Baud rates > 19200

Started by "Thiadmer Riemersma (ITB CompuPhase)" January 4, 2008
Hello everyone,

When I select "NXP ICP Bridge" in the FlashMagic utility to upload
programs to the Olimex LPC-2378-STK board (which has an LPC2378),
FlashMagic uses a fixed baud rate of 19200.

I have tried manually setting ISP mode and a higher baud rate in
FlashMagic. The utility then fails to connect to the board.

I also tried lpc21isp, which works well on an LPC2138 with baud rates
up to 115200 (with a 14.746 MHz crystal). Here, too, the lpc21isp
utility works fine for baud rates of 19200 and lower, but when I set
the baud rate to 28800, 38400 or some higher value, the processor
replies with garbage on the initial '?' (it should say "Synchronized").

Has anyone experienced this? According to the documentation, the
LPC2378 uses the 4 MHz IRC at boot-up and configures the PLL to 14.746
MHz, so autobaud should work up to 2230400.

Oh, I have also tried to start at 19200 baud and then switch to a
higher baud rate with an ISP command. All text received from the
LPC2378 after that command is garbled.

Does anyone have more information on this?

Kind regards,
Thiadmer Riemersma

An Engineer's Guide to the LPC2100 Series

Apologies: false alarm.

I am experiencing this problem when connecting the LPC2378 board to my
laptop using an USB-RS232 converter. I have used this cable to program
LPC2138 processors at 57600 and 115200 baud without problems, but on
the LPC2378 it fails at every baud rate above 19200 that I tried.

However, after connecting the board to my main development machine
(running Linux) that has a true RS232 port, the problem disappeared. I
am using lpc21isp on Linux, rather than FlashMagic. On Windows (on the
laptop, via the USB-RS232 cable) lpc21isp failed for baud rates above
19200 just like FlashMagic.

So, this might just as well be a problem in the USB-RS232 cable that
just did not surface before.

Sorry for wasting your time,
Thiadmer Riemersma

Memfault Beyond the Launch