# USBASP issue

**URL:** <https://forum.core-electronics.com.au/t/usbasp-issue/4596>\
**Category:** Uncategorized\
**Created:** [20 February 2019 03:26 UTC](https://forum.core-electronics.com.au/t/usbasp-issue/4596 "2019-02-20T03:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoff65941](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Geoff65941](https://forum.core-electronics.com.au/u/Geoff65941)\
**Post date:** [20 February 2019 03:26 UTC](https://forum.core-electronics.com.au/t/usbasp-issue/4596/1 "2019-02-20T03:26:12Z")

</div>

I am servicing pcb’s with a SMD atmega8 on board. where these have failed, I have them removed & replaced by a professional. I use the USBasp hardware from Core Electronics, with AVRdude & “Bitburner” software After a gruelling setting up, it all seems to be working correctly, I have now reprogrammed approx. 15 boards. 10 successfully, but 5 boards have failed to operate. of the failures I have replaced the atmega8 again & have successfully programmed 2 of them. After loading the prog, it verifies the prog & fuse bits as correct. The “lock bits” I leave alone, [my gear does not appear to be able to read or write the lock bits] So I would very much like to know what is not right. I am a total newby with Atmel, have some experience with PIC’s. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [20 February 2019 22:03 UTC](https://forum.core-electronics.com.au/t/usbasp-issue/4596/2 "2019-02-20T22:03:40Z")

</div>

Hi Geoff,

It seems to me that if you have replaced the atmega8 and reprogrammed it and it has failed twice more, then the problem likely lies with another fault on the pcb and perhaps not the atmega8 itself.

I would suggest programming the atmega8’s beforehand and testing them to rule out the possibility of an error on the PCB itself. One of these would be really handy:

> **[Freetronics Zero Insertion Force (ZIF) Breakout for 28-Pin AVR](https://core-electronics.com.au/freetronics-zero-insertion-force-zif-breakout-for-28-pin-avr.html?utm_source=google_shopping&gclid=CjwKCAiAkrTjBRAoEiwAXpf9CTVedH3sb0jXLopWCHH01PYVwDWCi4Zk_ErpkLLSLh8t4OnI5LrgIhoCYe0QAvD_BwE)**
>
> If you need to program a bunch of ATmega328P chips or other 28-pin DIP AVR you'll know that it's a pain to plug them all into an Arduino, flash them, and take them .. read more

You can add something to your sketch potentially that will blink the LED on this breakout when the board has been programmed, but doesn’t have any functionality in your PCB.
