Hello. I have Arudino Nano (clone) currently, and I cannot upload my sketch to it. It has CH340C chip and ATMega328PB.
Sorry I missed this.
This is how I got 10 Nano's with the 328PB chip to work for me. There may be an easier way but I didn't find it.
https://forum.arduino.cc/index.php?topic=541588.0
MiniCore. The URL will tell you how to install this.
EDIT: Pulled two Nano' out of the package and both will program using (Old Bootloader).
I realize I am over my head, but this doesn't seem right.
Notice the signature.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino_build_846063/Blink1.ino.hex"
avrdude: writing flash (1022 bytes):
Writing | ################################################## | 100% 0.26s
avrdude: 1022 bytes of flash written
And this using USBasp and averdude. Notice this signature.
/home/kprims/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/bin/avrdude -C/home/kprims/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/etc/avrdude.conf -v -patmega328pb -cusbasp
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/kprims/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/etc/avrdude.conf"
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude: auto set sck period (because given equals null)
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: safemode: lfuse reads as F7
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as FF
avrdude: safemode: lfuse reads as F7
avrdude: safemode: hfuse reads as DA
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:DA, L:F7)
avrdude done. Thank you.
I guess my question is how would I ever change the bootloader without specifying the 328PB chip? And why does the sketch say the chip is a 328P?