Masz programator (USBasp choćby, bo tani)? Żeby wgrać nową wersję?
Bo po napisach to jest świeża wersja i "u mnie działa".
Masz programator (USBasp choćby, bo tani)? Żeby wgrać nową wersję?
Możesz w środowisku, opcja "burn bootloader" ale jak wychodzi musiałbyś mieć programator, najtańszy (działający, mam taki) to chyba właśnie USBasp, był po ~20zł + przesyłka na Alle, teraz sprawdzałem, 10-15zł. + przejściówka na 6 pin z 10 (~5zł), ale może są jak kiedyś i takie zestawy od razu z nią (1 koszt wysyłki).
Kod: Zaznacz cały
>>>: avrdude
>>>: avrdude -u -c avrisp -P COM6 -b 57600 -p m8
Wykryto 1e950f = ATmega328P
Odczytuje fusy...
>>>: avrdude -u -c avrisp -p m328p -P COM6 -b 57600 -U hfuse:r:-:h -U lfuse:r:-:h -U efuse:r:-:h
SUKCES: Odczytałem fusy High
SUKCES: Odczytałem fusy Low
SUKCES: Odczytałem fusy Extended
Odczytuje lock bity...
>>>: avrdude -u -c avrisp -p m328p -P COM6 -b 57600 -U lock:r:-:h
SUKCES: Odczytałem lock bity
optiboot_atmega328.hex: 502 / 32 768 Bytes (1,53%)
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>>>: avrdude -u -c avrisp -p m328p -P COM6 -b 57600 -F -U flash:w:"C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex":a
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude.exe: Device signature = 0x1e950f (probably m328p)
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:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex"
avrdude.exe: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex auto detected as Intel Hex
avrdude.exe: writing flash (32768 bytes):
Writing | ################################################## | 100% 0.00s
avrdude.exe: 32768 bytes of flash written
avrdude.exe: verifying flash memory against C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude.exe: load data flash data from input file C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex:
avrdude.exe: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex auto detected as Intel Hex
avrdude.exe: input file C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\optiboot\optiboot_atmega328.hex contains 32768 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% -0.00s
avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x7e00
0x0e != 0x11
avrdude.exe: verification error; content mismatch
avrdude.exe done. Thank you.
Używałem USBasp, on jest niejako "zewnętrzny" w stosunku do procka. A czy bootloader jest W OGÓLE w stanie wgrać nową SWOJĄ wersję to sprawdź w datasheecie, ale coś mi się kojarzy, że nie. Musiałyby być 2 instancje, jedna "pracuje", druga "się wgrywa" a miejsce przewidziane jest na 1. (na ESP jest miejsce na 2 programy przy flashu > 1M).
W sumie możesz podłączyć 2gie arduino, są takie patenty w sieci, jak już masz. Ja nie miałem to po prostu kupiłem programator. I płytkę adapterów z podstawką Textoola, chyba z 50zł, ale dobrej jakości.
Kod: Zaznacz cały
In file included from Print.h:38,
from LiquidCrystal_I2C.h:6,
from main.c:162:
Printable.h:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Print'
Printable.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Printable'
In file included from LiquidCrystal_I2C.h:6,
from main.c:162:
Print.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Print'
In file included from Wire.h:26,
from LiquidCrystal_I2C.h:7,
from main.c:162:
Stream.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Stream'
In file included from LiquidCrystal_I2C.h:7,
from main.c:162:
Wire.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TwoWire'
Wire.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Wire'
In file included from main.c:162:
LiquidCrystal_I2C.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LiquidCrystal_I2C'
In file included from main.c:207:
Pewnie trzeba zmienić Makefile, bo teraz zawiera w sumie tylko "instrukcje" jak z *.c zrobić *.o, a z *.cpp nie wie make / kompilator co zrobić.
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 73 gości