I can see the following relevant programmer definitions for avrisp2 in avrdude.conf:
programmer id = "avrisp2"; desc = "Atmel AVR ISP mkII"; type = stk500v2; ; programmer id = "stk500v2"; desc = "Atmel STK500 Version 2.x firmware"; type = stk500v2; ; I cannot see connection type being part of these programmer definitions. Also, default_usb = "usb"; seems to produce the error at /etc/avrdude.conf:19 unrecognized character: "d" error message On Sun, Jan 19, 2014 at 1:02 PM, Joerg Wunsch <[email protected]> wrote: > As László Monda wrote: > >> Instead of supplying "-P usb" in the command line every time I'd like >> to set it as a default. The following directives in the configuration >> file didn't do the trick: > > Vor which programmer type? > > The default connection type is part of the programmer definition in > avrdude.conf. Depending on that, the following switch statement then > decides about the portname to use in absence of a -P option: > > if (port == NULL) { > switch (pgm->conntype) > { > case CONNTYPE_PARALLEL: > port = default_parallel; > break; > > case CONNTYPE_SERIAL: > port = default_serial; > break; > > case CONNTYPE_USB: > port = DEFAULT_USB; > break; > } > } > > -- > cheers, Joerg .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ > Never trust an operating system you don't have sources for. ;-) -- László Monda <http://Monda.hu> | <http://UltimateHackingKeyboard.com> _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
