avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] How to set usb port as default?


From: René Liebscher
Subject: Re: [avrdude-dev] How to set usb port as default?
Date: Sun, 19 Jan 2014 18:47:49 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi,

connection_type is used from avrdude 6.x. You seem to use avrdude 5.11
or earlier? (avrdude 6.x has changed from type=stkv500v2 to type="stk500v2")

You better provide for any questions to the mailing list, the version
you use and your command line and any other relevant setup.


Kind regards

René


Am 19.01.2014 13:37, schrieb László Monda:
> 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 <address@hidden> 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. ;-)
>
>




reply via email to

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