avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [patch #9254] Adds support for selecting USB devices to US


From: Joerg Wunsch
Subject: [avrdude-dev] [patch #9254] Adds support for selecting USB devices to USBasp
Date: Thu, 18 Jan 2018 17:53:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:57.0) Gecko/20100101 Firefox/57.0

Update of patch #9254 (project avrdude):

                  Status:                    None => Need Info              

    _______________________________________________________

Follow-up Comment #1:

Somehow, it doesn't seem to work for me.

The USBasp can be found (no target connected, thus fails):


./avrdude -C avrdude.conf -p m16 -c usbasp -P usb

avrdude: error: usbasp_transmit: Unknown error
avrdude: error: usbasp_transmit: Unknown error
avrdude: warning: cannot set sck period. please check for usbasp firmware
update.
avrdude: error: usbasp_transmit: Unknown error
avrdude: error: program enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


However, when passing -P usb:xxx as suggested, I do not get
a list of devices but just:


./avrdude -C avrdude.conf -p m16 -c usbasp -P usb:xxx
avrdude: Error: Invalid -P value: 'usb:xxx'
         Use -P usb:bus:device

avrdude done.  Thank you.


Nonsensical :bus:dev values are not rejected but cause a
stupid error message:


./avrdude -C avrdude.conf -p m16 -c usbasp -P usb:foo:bar
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc
vendor='www.fischl.de' product='USBasp'

avrdude done.  Thank you.


If there is no USBasp connected, it dumps core:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802806400 (LWP 100762/avrdude)]
0x0000000801acc7a0 in strcasecmp_l () from /lib/libc.so.7
(gdb) up
#1  0x0000000000419bcd in usbasp_open (pgm=0x80286d000, port=<value optimized
out>) at usbasp.c:604
604           if(strcasecmp(port, "nibobee") == 0) {
Current language:  auto; currently minimal



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9254>

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




reply via email to

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