EmbeddedRelated.com
Forums

Linux and lpc21isp v1.24 (using for LPC2138) hangs

Started by drchlik June 22, 2005
Hello,

I have problem with lpc21isp v1.24. I use it with development board
MCB2130. This board have LPC2138 processor.
Sometimes when I want to flash new sotware I will get ioctl get failed
ioctl set failed at the end of flashing cycle. (After lpc21isp prompt
"Now lauching the rand new code". After that I'm not able to flash
anything. When I try to something flash lpc21isp hangs on open()
serial port.
I'm using Mandrake 10.1 on this:
Linux marty_pc 2.6.8.1-10mdksmp #1 SMP Wed Sep 8 16:41:52 CEST 2004
i686 Intel(R) Pentium(R) 4 CPU 3.00GHz unknown GNU/Linux

Does anybody know where problem is ?


An Engineer's Guide to the LPC2100 Series

--- In lpc2000@lpc2..., "drchlik" <drchlik@y...> wrote:
> Sometimes when I want to flash new sotware I will get ioctl get failed
> ioctl set failed at the end of flashing cycle. (After lpc21isp prompt
> "Now lauching the rand new code". After that I'm not able to flash
> anything. When I try to something flash lpc21isp hangs on open()
> serial port.

I have had problems with lpc21isp hanging in the open() call. Ever
since I made the open() call non-blocking, this problem has not
occurred anymore.

The version with non-blocking open() (and a few minor changes) is
1.24C on http://groups.yahoo.com/group/lpc21isp/. I just saw that
Martin Maurer (the original author) has uploaded version 1.25 in the
same group. I have not checked that version, but you may try that too.

Kind regards,
Thiadmer



Hello,

can you create a debug file (-debug) of the error situation and also perhaps
of the next run ? You must redirect the display output to a file. Can you
send me the logfile ?

What command line do you use ? Only downloading or also terminal ? Can you
try out if it is happening when you download only without terminal ?

Which serial port are you using ? A built in standard serial port, some
extension card, or a USB based serial port ?

BTW: Is the error also happening with lpc21isp version 1.25, which is
available through the lpc21isp mailinglist ?

Regards,

Martin