avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [bug #30559] Ft232 bit-bang support


From: Matthias Neeracher
Subject: [avrdude-dev] [bug #30559] Ft232 bit-bang support
Date: Thu, 26 Jul 2012 23:45:01 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25

Follow-up Comment #30, bug #30559 (project avrdude):

The reason this does not work on Mac OS X is that the sem_init family of calls
is stubbed out in OS X: You can link to the calls, but they don't actually
work.

I added a little patch below that emulates sen_init & co with libdispatch
semaphores on OS X. Further more, the reader thread seems to need a
pthread_testcancel on OS X, otherwise avrdude hangs at the end trying to
cancel the thread.

With these changes, the mode works for me on OS X, although only at very slow
rates – anything faster than 4800 baud leads to verification errors, and
often reprogrammed fuses as well.

(file #26269)
    _______________________________________________________

Additional Item Attachment:

File name: macosx.patch                   Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?30559>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]