Board and HOWTO to upload bootloader onto atmega 328P-PU 328P-AU 328P
hardware connections
ID -- USBasp -- Arduino > Target 328p-au
VCC: -- 2 -- 5V > pin 4 & 18
GND: -- 4 -- GND > Pin 5 & 21
MOSI: -- 1 -- 11 > Pin 15
MISO: -- 9 -- 12 > pin 16
SCK: -- 7 -- 13 > pin 17
RST: -- 5 -- 10 > pin 29
Xtal1: > pin 7
Xtal2: > pin 8
or make the board using the uploaded files on a UNO
- open arduino.exe
- file> preferences>
- into " additonal board manager URLs:" paste link : https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json
- click on : " Show verbose output during : upload" if not already selected
- click OKE
- tools > Board > Board manager
- scroll down ( probably to end) find "miniCore"
- install "MiniCore"
- close Board manager
for programing you can use a UNO or any other boards as programmer but you can also use a usb to ISP converter
-
A.1) Upload "ArduinoISP.ino" onto arduino to be used as intermediary for bootloading
-
A.2) Set Tools > programmer > Arduino as ISP (Minicore);
-
B.1)using a USBasp make sure to have the right driver if not working properly try installing LIBUSBK using https://zadig.akeo.ie
-
B.2) Set Tools > programmer > USBasp (minicore)
-
Tools > Board > minicore > Atmega328
-
Tools > Board > Select clock used and varriant
-
NOW make the connection to the chip using the before mentioned wiring
-
plug in device
-
Tools > Load bootloader
-
if correct " Done uploading " should show
as well as :
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of lock verified
avrdude done. Thank you.
IF any error check if chip is placed correctly and or making good contact most upload errors are bad connections