USBasp programmer - error: program enable: target doesn't answer

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

I've purchased a "cheap" USBasp programmer from AliExpress. It didn't cost much, however I'm surprised that it seems to work very poorly. In fact I can't get avrdude to receive a sane response from an ATtiny84 through it.

 

Rather than copy/paste everything I've written so far, I've written up the problem on Stack Exchange here.

 

The short of it is that although the Clock and Reset signals do what I expect, MISO and MOSI look very strange indeed. I've posted oscilloscope traces on that thread.

 

Is the programmer simply broken or have I got something wrong? I'm 99% sure my connections between the programmer and ATtiny84 are correct, but there's a chance I may have messed up somewhere.

 

I've spent three evenings on this now so I'd really appreciate some help from an experienced AVR freak, please! :)

 

 

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

I have made several custom ribbon cables with hand-rearranged wires in an IDC receptacle. It is not always successful (compared to straight 10-way ribbon in 10-way receptacle)
.
I suggest that you use the 10-way ribbon that came with your USBASP. Make or buy a fixed 10-way to 6-way adapter.
Check the soldering of the pcb. Especially on MOSI traces.
.
JP3 is unlikely to do anything. But is useful if you use different firmware.
.
David.

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

I suggest that you use the 10-way ribbon that came with your USBASP. Make or buy a fixed 10-way to 6-way adapter.
Check the soldering of the pcb. Especially on MOSI traces.

 

I'm actually skipping the cable entirely and connecting the PCB socket pins directly (via breadboard) to the pins of my ATtiny84 using short jumper wires.

 

I'll check over the PCB soldering - good idea, thanks.

Last Edited: Sun. Nov 12, 2017 - 02:44 AM