EmbDev.net

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


Author: Andreas Schwarz (andreas) (Admin) Flattr this
Posted on:

Rate this post
0 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...

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

Andreas

Author: John Berry (twelvetones)
Posted on:

Rate this post
0 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...
>
> You can download a patched executable here:
> http://www.mikrocontroller.net/download/lpc21isp-1...
>
> Andreas

Author: Andreas Schwarz (andreas) (Admin) Flattr this
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.