Code Monkey home page Code Monkey logo

Comments (8)

avrs-admin avatar avrs-admin commented on August 14, 2024

Joerg Wunsch <joerg_wunsch>
Sat 17 Sep 2005 07:47:19 PM UTC

Do you have a chance to test the latest CVS version?

The initialization has been modified for the butterfly/AVR109,
so your case might have been fixed as a side-effect.

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Sun 16 Oct 2005 04:16:07 AM UTC

I am having the exact same problem.  I have tried 5.0BETA as well as 5.0 with no luck.  In 5.0 I tried changing timeout.tv_usec as mentioned above but saw no difference after recompiling.

A few important differences, I am using Darwin 10.4.2 and a keyspan USB <-> Serial adapter.

After typing in a standard avrdude command such as:
avrdude -p m163 -P /dev/tty.USA19H1b1P1.1 -c stk500
the terminal simply hangs.  One interesting note, when I unplug the usb cable for the adapter, instantly I recieve the following error:
avrdude: ser_open(): can't open device "/dev/tty.USA19H1b1P1.1": Device not configured

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Nick Lott
Tue 24 Jan 2006 12:53:12 AM UTC

I have tested on Mac OS X 10.4.4  with a PL2303 device and have no problems. This may be a driver issue??

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Max Egger
Thu 09 Mar 2006 05:14:41 PM UTC

I had the same problem with a Keyspan USA-19HS connected to the SP Duo 2.1, and also with the STK500 board (old protocol), using AVRDUDE 5.1 and Darwin 8.5.0 (OS X 10.4.5). After calling AVRDUDE, the terminal hung until I unplugged the serial adapter, returning the error mentioned above.
I solved it by adding the O_NDELAY flag to the open() call in ser_open(), so it ignores the state of the DCD line. Now it works just fine.

Here's the diff of ser_posix.c:
--- ser_posix_orig.c    2006-03-07 18:17:53.000000000 +0100
+++ ser_posix.c 2006-03-07 18:17:26.000000000 +0100
@@ -137,7 +137,7 @@
/*

  • open the serial port
    /
    -  fd = open(port, O_RDWR | O_NOCTTY /
    | O_NONBLOCK*/);
    +  fd = open(port, O_RDWR | O_NOCTTY | O_NDELAY /| O_NONBLOCK/);
    if (fd < 0) {
    fprintf(stderr, "%s: ser_open(): can't open device "%s": %s\n",
    progname, port, strerror(errno));

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Joerg Wunsch <joerg_wunsch>
Thu 09 Mar 2006 08:02:15 PM UTC

Curious, does OSX offer dual /dev/ttyXXX vs. /dev/cuaXXX
devices?  AVRDUDE is meant to use the latter ones (which
will ignore absense of DCD when opening).

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Nick Lott
Fri 10 Mar 2006 12:02:15 AM UTC

Osx has both TTY.XXXXX and cu.XXXX
I use avrdude with /dev/cu.usbserial/ and it works great.
Is it mentioned in the documentation to use these devices rather than the TTY versions?

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Joerg Wunsch <joerg_wunsch>
Mon 21 Aug 2006 12:09:33 PM UTC

Pilot error: use cuXXX rather than ttyXXX.

Only documentation update is needed.

from avrdude.

avrs-admin avatar avrs-admin commented on August 14, 2024

Joerg Wunsch <joerg_wunsch>
Mon 21 Aug 2006 12:11:30 PM UTC

Oops, "analyzed" is not a good state: it prevents the bug
report from being displayed in the default search.

from avrdude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.