USBASP problem

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi ashamed to ask this, guess there are numerous issues alike, and hate going backwards, covid shot got me down and now trying to ressurect......

 

Using the USBASP and a cheap dongle, ( I have used hundreds/thousands of times, well since crash (me i.e.) where i mucked up (bricked)several boards and  havnt tried to come back until now)  when not connected to board, my win XP and my W10 seem to recognize the USB, but, when

connecting to the board, suddenly the USB seem to get lost

 

in the first case I get:  -1   check you connections ...

 

second case I get :

 Warning: cannot query manufacturer for device: usb_control_msg: sending control message failed, win error: En enhet som õr ansluten till datorn fungerar inte.

avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

 

would be very greatful if I could get past this .... and get back at least yogging

thanks

 

edit:  using avrdude i.e.

ed2: it seem to be some state change in the USBASP, the second message persists until unplugging and plugging in again

Last Edited: Sun. Oct 10, 2021 - 04:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi again. As myself mentioned, there must be tons of these issue posts. Well.   (did do all driver installation checking, no difference)

 

found:

https://www.avrfreaks.net/forum/...

 

paulvdh  entry #13  .... last lines;   connect the board first, then the usb; the firmware gets mumps from connecting...... I suspected something electrical ;)

 

that rendered me  .. oh .. not working, but but  now rc=-1 check connections; well could try to speed down  -B 5

 

and YES, light at the end of the tunnel, chip answers. Interresting enough I have been using, well a similiar usbasp dongle for several years, no problem.

 

Thanks all for an eminent forum.

 

/g

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Regular Chinese USBASP firmware sets SCK automagically.

 

Any device requires power and initialisation.   Never attach an un-powered programmer.

I would expect avrdude to whinge about a Chinese firmware "unable to set SCK"

And an USBASP with German firmware to fail with the wrong SCK.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Im not sure I follow;

-- "never un-powered",   would that mean to allways have the powering from programmer to board?,

                                        I dont have power to the chip/board, since that" normally" uses own power

                                        (which is one of the causes I have bricked, since sometimes

                                        programming succeeds even when I have forgotten giving the board power, and sometimes it fails,

                                        when it the fuse check is not matching and wants to "restore fuses", which I suspect then fail due to bad power....

                                        or I give the wrong answer for fuse reset.....), since I have understood that one should not feed power both ways

 

-- "chinese": It seemed that I had to attach -B to get contact, which would contradict ".cn sets SCK auto", and yes avrdude does whine about "unable"; which then would point to .cn

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One plague on USB interface; 

If by some reason you short circuit the 5V to ground on the USB connector, in this case the cheap programmer has 5V exposed in serveral SMD components (we know our benches are not the most clean and space empty ones with lots of other metallic things around), the USB hub (it can be internal to your PC, motherboard or not, or even a powered external one), the hub will shut down such port to protect the circuitry.  You may fight it for hours, will only return to life after you shutdown (power) your computer and restart, or, if the hub is external and powered, disconnect completely, remove power, reinsert everything, it will restart by itself.

 

The USB Hub is sensitive to short circuits or even excess current on the 5V pins, it will shut down such port.

You can, of course, move the cheap programmer to another Hub USB port and use, still need to power cycle later to reactivate the off port.

Wagner Lipnharski
Orlando Florida USA

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, thanks, some pieces of info every day, keep boredom away.... (and lack of it, frustration high..)  :)

One day possibly, I will try to get into the mysteries of USB in ernest.

Its a bit fun though that different pieces suposedly being the same, can act so different