EmbDev.net

Forum: ARM programming with GCC/GNU tools Patch for lpc21isp on OS X


von Andreas S. (andreas) (Admin)


Rate this post
useful
not useful
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

von John B. (twelvetones)


Rate this post
useful
not useful
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

von Andreas S. (andreas) (Admin)


Rate this post
useful
not useful
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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.