Atmega328 Programmer
[[ http://lechacalshop.com/gb/various/23-atmega328-tqfp32-arduino-socket-programmer.html Link to the shop.]]
Insert the MCU as shown on the picture below. Reference dot on top left
Connect an avr programmer with a 6 pin ribbon cable.
Upload sketch as normal.