An AVR boot loader designed specifically for the ATmega328p 8-bit MCU, with SPI programming interface support.
This implementation has not been fully tested for confirmed functionality.
- Lightweight and fast.
- Error handling.
- Error status LED indicator.
- Ready/on status LED indicator.
The electrical schematic for this prototype PCB can be found in /schematic
.
The board features accessibility to pins D0-D7, B0, B6, B7, and C2-C5 through female headers. The ready and error status LEDs are connected to pins C0 and C1.
Requires a supported ISP programmer and avrdude flash software. A USBasp Chinese clone is used in this example.
Using the sample prototype PCB, connect the USBasp to the correct pin headers. Refer to the schematic of the prototype for correct pin mapping.
Use the following commands to flash the bootloader to the MCU:
avrdude.exe -c usbasp-clone -P usb -p m328p -U lock:w:0x3f:m -U lfuse:w:0xff:m -U hfuse:w:0xde:m -U efuse:w:0xfd:m
avrdude.exe -c usbasp-clone -P usb -p m328p -U flash:w:ATM328-ASM.hex -U lock:w:0x0f:m
Notice: A driver may be required for your programmer to work.
Use AVRASM2 assembler (Atmel Studio).
The contents of this repo are licensed under the BSD 3-Clause open-source software license. Any images are licensed under CC BY-SA 3.0.