Patch for lpc21isp on OS X

OP Admin #1171066
Hi,

lpc21isp needs a patch to disable nonblocking IO, otherwise write()
hangs with my FT232-based USB-serial adapter. Please let me know if you
have the same problem and if this patch it works for you.

http://www.mikrocontroller.net/download/lpc21isp-1.31-no-nonblock.patch

You can download a patched executable here:
http://www.mikrocontroller.net/download/lpc21isp-1.31-osx-patched

Andreas
#1171067
Andreas,

I'm brand brand brand new to ARM-GCC, just building and programming my
first .hex file.  I downloaded the OS X toolchain and am trying to
program an AT91SAM7S64 using an FTDI USB-to-serial adapter (not sure of
the brand name.)

I've got your patched lpc21isp binary but programming seems to be
hanging -- see output I've pasted below.  Not sure however if this is
due to nonblocking I/O or something else ("You may have to bring the
target into bootloader-mode now"???)

Thanks for any help you might have!
John

>>>>>>>>>>>

john@cloudatlas:/usr/local/src/arm/at91sam7s_Atmel_example$ make program
You may have to bring the target in bootloader-mode now.
lpc21isp -control -debug main.hex /dev/cu.usbserial-FTCCCBLO 115200
14746
Turn on debug.
lpc21isp version 1.31
File main.hex:
        loaded...
Converting file main.hex to binary format...
RecordLength = 10
RecordAddress = 0000
RealAddress = 00000000
RecordType = 00
Image size now: 16
RecordLength = 10
RecordAddress = 0010
RealAddress = 00000010
RecordType = 00
Image size now: 32

<< snip >>

        converted to binary format...
        image size : 836
COM-Port /dev/cu.usbserial-FTCCCBLO opened...
ioctl get ok, status = 66
ioctl set ok, status = 66
ioctl get ok, status = 66
DTR (1), RTS (1)
ioctl get ok, status = 66
ioctl set ok, status = 64
ioctl get ok, status = 64
DTR (0), RTS (1)
ioctl get ok, status = 64
ioctl set ok, status = 60
ioctl get ok, status = 60
DTR (0), RTS (0)
Position 0x14 patched: ivt_CRC = 0x9E5F6FD1
Synchronizing.Sending '?'

<<<<<<<<<<<





Andreas S. wrote:
> Hi,
>
> lpc21isp needs a patch to disable nonblocking IO, otherwise write()
> hangs with my FT232-based USB-serial adapter. Please let me know if you
> have the same problem and if this patch it works for you.
>
> http://www.mikrocontroller.net/download/lpc21isp-1.31-no-nonblock.patch
>
> You can download a patched executable here:
> http://www.mikrocontroller.net/download/lpc21isp-1.31-osx-patched
>
> Andreas
OP Admin #1171068
Hi,

lpc21isp doesn't work for AT91SAM7. I don't have any experience with
this controller family, and I don't know any tool for AT91SAM7
programming on OS X. You might want to start a new topic with this
question.

Andreas

Reply

A question of your own? This thread is over 20 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.