• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
UNU CH340 - problem z wgraniem bootloadera
#14
Trochę czasu minęło, ale chciałbym wyciągnąć pacjenta ze śpiączki i postawić na nogi (o ile się da).

Po kolei:
USBASP działa, bo po moich zabawach NANO też straciło bootloader, ale z użyciem programatora, odwróciłem ten stan i działa po dziś dzień.

Gdy zasilę UNO z kabla USB podłączonego do laptopa, to na 5V i GND mam 4.97V. USBDOCTOR pokazuje mi 0.04A, ale bez obciążenia pokazuje 0.01A więc można przyjąć że płytka bierze 30 mA.

Zasiliłem ją przez porty 5V i GND, poprzez 104n i 470uF akurat były na stole po walce z RF, z ładowarki od telefonu, przez USBDOCTOR, który pokazał 0.03A, czyli płytka bierze jakieś 0.02A.
Nic się nie zaczęło grzać w obu przypadkach zasilania.

Przy zasilaniu przez piny 5V i GND, programator prawidłowo rozpoznaje płytkę w mkAVR. Program przy próbie wgrania flash:
Kod:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
        To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: reading input file "C:\Arduino\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex"
avrdude: writing flash (32768 bytes):

Writing | ################################################## | 100% 19.00s

avrdude: 32768 bytes of flash written
avrdude: verifying flash memory against C:\Arduino\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude: load data flash data from input file C:\Arduino\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude: input file C:\Arduino\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex contains 32768 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 17.69s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x7e00
        0x11 != 0xff
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
Fuse bity nie są zgodne z fabrycznymi dla tego kontrolera, ale gdy chcę je nadpisać:
Kod:
avrdude: set SCK frequency to 750000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "0x62"
avrdude: writing lfuse (1 bytes):

Writing |  ***failed;  
################################################## | 100% 0.11s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x62:
avrdude: load data lfuse data from input file 0x62:
avrdude: input file 0x62 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% -0.00s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
        0x62 != 0xff
avrdude: verification error; content mismatch

avrdude done.  Thank you.

Jestem otwarty na sugestie Smile
 
Odpowiedź
  


Wiadomości w tym wątku
RE: UNU CH340 - problem z wgraniem bootloadera - przez Mad_Maxs - 08-06-2018, 20:53

Skocz do:


Przeglądający: 1 gości