Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- Help wanted: CMake to compile Qt .ui files HOT 7
- Wrong message level in `jtag3_prmsg()` HOT 1
- 0xff optimization when reading HOT 7
- Error when using linuxgpio HOT 3
- v7.3 detected as malware HOT 1
- Add support for libgpiod v2+ API HOT 2
- "jtag2 is not a unique start of a programmer name"
- `-F` option not honored
- Add support for more AVR-DU parts HOT 2
- Add support for emscripten HOT 6
- Trouble with Raspberry pi 5 HOT 9
- linuxgpio sysfs fallback improvement to deal with shifted GPIO numbering in new kernel version HOT 1
- usbasp_write_byte in TPI mode; all writes have to be done at page level HOT 15
- cmake enabling LINUXGPIO on ubuntu 20.04 fails HOT 4
- arduino uno atmga328p HOT 2
- macOS github action failed. HOT 9
- CMake improvement -- using pkg-find to find the libraries HOT 1
- format mismatch warnings HOT 3
- Misleading error message: cannot find programmer id
- custom programmer broken in v7.3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avrdude.