<p>A follow up to “The Lost Episode”. Flashing the blank Atmega328p chip to get bring a nonworking Transistor Tester Kit to life.</p>
<p>There are a lot of these kits out there. Different shapes, colors, and capabilities. In my case the kit was called a: 2578AY-AT. The firmware for this particular kit is: <code>mega328_color_kit</code>.</p>
<ul>
<li><p>Pics for the Episode:<br />
<a href="https://media.gunmonkeynet.net/u/nybill/collection/the-lost-episode-part-2/" class="uri">https://media.gunmonkeynet.net/u/nybill/collection/the-lost-episode-part-2/</a></p></li>
<li><p>PDF of Open Source project:<br />
<a href="https://www.avrtester.tode.cz/upload/ttester_en.pdf" class="uri">https://www.avrtester.tode.cz/upload/ttester_en.pdf</a></p></li>
<li><p>My AVR Programmer:<br />
<a href="https://www.amazon.com/Qunqi-Programmer-Adapter-ATMEGA8-ATMEGA128/dp/B014J2BMAG/ref=sr_1_3?ie=UTF8&amp;qid=1508004600&amp;sr=8-3&amp;keywords=usbasp" class="uri">https://www.amazon.com/Qunqi-Programmer-Adapter-ATMEGA8-ATMEGA128/dp/B014J2BMAG/ref=sr_1_3?ie=UTF8&amp;qid=1508004600&amp;sr=8-3&amp;keywords=usbasp</a></p></li>
<li><p>Avrdudess:<br />
<a href="https://blog.zakkemble.co.uk/avrdudess-a-gui-for-avrdude/" class="uri">https://blog.zakkemble.co.uk/avrdudess-a-gui-for-avrdude/</a></p></li>
<li><p>Steps after plugging in the USB programmer:</p></li>
</ul>
<pre><code>    lsusb (get bus and device ID numbers.)
    sudo chmod +777 /dev/bus/usb/*bus_ID/*device_ID

    avrdude -c ‘your programmer’ -p ‘your chip’</code></pre>
<ul>
<li>In my case:</li>
</ul>
<pre><code>    avrdude -c usbasp -p m328p</code></pre>
<p>Avrdude should communicate with the programmer and verify the chip is ready to receive instructions.</p>
<p>From here Avrdudess helped as I was able to use the ‘verify’ options after a write to see there was an error. Avrdudess also let me correct the error by changing the E-lock value to 0x04. Then the flash would write.</p>
<p>Remember to write the hex file first and the eep file second as hex would over write a eep file if it was written first.</p>
