почему avrdude не пишет новое значение в OSCCAL ?
- Войдите на сайт для отправки комментариев
Вс, 31/01/2016 - 23:00
вот такой командой считываю:
avrdude -p m168p -c avrisp -P com3 -b 19200 -U calibration:r:file.txt:d
записываю:
avrdude -p m168p -c avrisp -P com3 -b 19200 -U calibration:w:file.txt:d
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0x1e940b
avrdude: reading input file "file.txt"
avrdude: fileio: invalid operation=0
avrdude: read from file 'file.txt' failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.
или так:
avrdude -p m168p -c avrisp -P com3 -b 19200 -U calibration:w:159:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0x1e940b
avrdude: reading input file "159"
avrdude: writing calibration (1 bytes):
Writing | | 0% 0.00s ***faile
d;
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of calibration written
avrdude: verifying calibration memory against 159:
avrdude: load data calibration data from input file 159:
avrdude: input file 159 contains 1 bytes
avrdude: reading on-chip calibration data:
Reading | ################################################## | 100% 0.02s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x9f != 0xa9
avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK
avrdude done. Thank you.
как записать ?
ggbwe, OSCAL -это регистр в оперативной памяти. Если бы программатор и мог в него записать, то какой в этом смысл? Первый ресет -и там снова окажется значение по-умолчанию. Всё хотите частоту менять? :)