Testowo na Uno stara wersja v5 wchodzi bez problemu i po serialu nadaje dane. Znowu nie moge wgrac żadnej z wersji v6 bo wyskakuje upload failed.
Mam 3 sztuki Mini Pro, kupione w okresie 2-3 lat każda od innego sprzedawcy. Na każdej bez problemu z Arduino IDE (cc 1.8.19) wgrywam blinka albo inne projekty i wszystko smiga.
Niestety za cholerę nie mogę na nie wgrać wsadu Mpe, próbowałem wielu kombinacji. W Xloader ustawiam Uno(ATmega328), i szybkosc 57600 bo ta podana przez Marka 115200 w ogóle nie wysyła danych do płytki.
Najpierw wgrywam wersje _init, wgrywa się bez problemu pózniej 2 razy po minucie resetuje płytę i wgrywam już normalną wersję. Wgrywa, ale po kilku sekundach (chyba po weryfikacji) wywala upload failed.
Mam 2 różne FT232RL, podłączone piny TX, RX, GND, VCC, DTR.


Próbowałem wgrywać bezpośrednio przez avrdude, ale wywala błąd weryfikacji po wgraniu docelowej wersji oprogramowania.
_init ok:
Kod: Zaznacz cały
C:\Users\micro>"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -v -p m328p -c arduino -P COM2 -b 57600 -U flash:w:"C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014_init.hex":i
avrdude.exe: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf"
Using Port : COM2
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
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
efuse 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
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude.exe: Device signature = 0x1e950f (probably m328p)
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014_init.hex"
avrdude.exe: writing flash (21484 bytes):
Writing | ################################################## | 100% 6.06s
avrdude.exe: 21484 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014_init.hex:
avrdude.exe: load data flash data from input file C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014_init.hex:
avrdude.exe: input file C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014_init.hex contains 21484 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 4.61s
avrdude.exe: verifying ...
avrdude.exe: 21484 bytes of flash verified
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: safemode: Fuses OK (E:00, H:00, L:00)
avrdude.exe done. Thank you.
Kod: Zaznacz cały
C:\Users\micro>"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -D -v -p m328p -c arduino -P
COM2 -b 57600 -U flash:w:"C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014.hex":i
avrdude.exe: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf"
Using Port : COM2
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega328P
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
efuse 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
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude.exe: Device signature = 0x1e950f (probably m328p)
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: reading input file "C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014.hex"
avrdude.exe: writing flash (31784 bytes):
Writing | ################################################## | 100% 8.68s
avrdude.exe: 31784 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014.hex:
avrdude.exe: load data flash data from input file C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014.hex:
avrdude.exe: input file C:\Users\micro\Desktop\MPe pliki\v5\MPeV5_5014.hex contains 31784 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 6.54s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x7800
0x0c != 0xea
avrdude.exe: verification error; content mismatch
avrdude.exe: safemode: lfuse reads as 0
avrdude.exe: safemode: hfuse reads as 0
avrdude.exe: safemode: efuse reads as 0
avrdude.exe: safemode: Fuses OK (E:00, H:00, L:00)
avrdude.exe done. Thank you.