A programmer for the AVR architecture microcontroller, specifically the Atmega328P, for the Raspberry Pi Pico.
- Turns the Raspberry Pi Pico into an AVR programmer via SPI programming mode.
- Instructions are streamed using the serial port to the Raspberry Pi Pico via USB which handles the rest.
- Verifies flashed pages after programming to confirm a successful flash.
- You can either use the released
.uf2binary file and drop it onto the Raspberry Pi Pico which has the compiled source code, or compile it yourself with the Raspberry Pi Pico SDK for C/C++.
- You simply need to connect all the SPI and other relavent pins from the Raspberry Pi Pico to the ATmega Chip
- Pinout - MOSI 19 SCK 18 MISO 20 RESET17
- The tool is designed so that you can also program firmware using a serial port client, which you can do so by using a tool such as PuTTY and pasting in the hex of each individual byte of the firmware, each being followed by a space (" ") - after all hex bytes have been sent, press enter and the programmer will begin erasing and flashing the AVR controller.
- Alternatively, I have written a client for this in Node.js which takes in a binary file of the firmware and automatically interfaces with the Pico programmer:
