Hi all,
after resolving the issues I had uploading a boot loader to an ATMega328PB (
https://www.eevblog.com/forum/microcontrollers/problem-flashing-bootloader-to-atmega328pb/), I am now struggling to upload a blink sketch (or any sketch) to it. When I try uploading using a FT232R clone from Aliexpress
https://www.aliexpress.com/item/32843185453.html?_randl_currency=AUD&_randl_shipto=AU&src=google&src=google&albch=rmkt&acnt=576-373-4425&albcp=16560254345&albag=&slnk=&trgt=&plac=&crea=&netw=x&device=c&mtctp=&albbt=Google_7_rmkt&gclid=Cj0KCQjw-JyUBhCuARIsANUqQ_JGzFj-JiPLZtzcvFcDcqsn2aeTDf4tLwtusCzj_n0QDsU_Ub2v5_8aArabEALw_wcB&aff_fcid=8221bc3a71534bbb8f13cc2800416d00-1653099495457-07072-UneMJZVf&aff_fsk=UneMJZVf&aff_platform=aaf&sk=UneMJZVf&aff_trace_key=8221bc3a71534bbb8f13cc2800416d00-1653099495457-07072-UneMJZVf&terminal_id=6ca1f3c260424bf7b4ded7bedc3de2aa&afSmartRedirect=y,
I get an out of synch message, when I try using the Uno R3 I get an "device signature error" as per message below.
I've connected pin 10 of the Uno to the chip reset pin on the target board via 100n cap and 10k resistor to VCC, and I'm getting a few us pulse on the scope, so that seems to work OK.
The error output seems to indicate a 28 kHz oscillator frequency, while I'm using a 16MHz resonator on the target board, so something looks wrong here already.
Any ideas are much appreciated.
Thanks,
Andreas
----------------------------------
Arduino: 1.8.15 (Windows 10), Board: "ATmega328, Yes (UART0), EEPROM retained, 328PB, BOD 4.3V, LTO disabled, External 16 MHz"
Sketch uses 1256 bytes (3%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Users\1520004\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18/bin/avrdude -CC:\Users\1520004\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf -v -patmega328pb -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\1520004\AppData\Local\Temp\arduino_build_81012/Blink.ino.hex:i
avrdude: Version 6.3-20201216
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\1520004\AppData\Local\Arduino15\packages\MiniCore\hardware\avr\2.1.3/avrdude.conf"
Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328PB
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
An error occurred while uploading the sketch
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: Expected signature for ATmega328PB is 1E 95 16
Double check chip, or use -F to override this check.
avrdude done. Thank you.
https://downloads.arduino.cc/libraries/library_index.json.sig file signature verification failed. File ignored.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.