Hned na zaciatok napisem, ze s programovaním ATMELOV nemam skoro ziadne skusenosti.
Potrebujem urobit jednoduchý blikac s co najnizsou spotrebou. Nasiel som konstrukciu s ATTINY13. Viem pouzit procesor len na blikanie ale ...
Konstrukcia aj so softom v hex a asm tvare je tu:
Kód: Vybrať všetko
http://tefatronix.g6.cz/display.php?page=lpflasher&lang=cz
avrdude -p t13 -c usbasp -B50 -U flash:w:FILENAME.hex -U hfuse:w:0xFF:m -U lfuse:w:0x5F:m
Avrdudess napisal toto:
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9007
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: reading input file "lpflasher_1_10ms.hex"
avrdude: input file lpflasher_1_10ms.hex auto detected as Intel Hex
avrdude: writing flash (68 bytes):
Writing | ################################################## | 100% 0.06s
avrdude: 68 bytes of flash written
avrdude: verifying flash memory against lpflasher_1_10ms.hex:
avrdude: load data flash data from input file lpflasher_1_10ms.hex:
avrdude: input file lpflasher_1_10ms.hex auto detected as Intel Hex
avrdude: input file lpflasher_1_10ms.hex contains 68 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.03s
avrdude: verifying ...
avrdude: 68 bytes of flash verified
avrdude: reading input file "0xFF"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xFF:
avrdude: load data hfuse data from input file 0xFF:
avrdude: input file 0xFF contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0x5F"
avrdude: writing lfuse (1 bytes):
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x5F:
avrdude: load data lfuse data from input file 0x5F:
avrdude: input file 0x5F contains 1 bytes
avrdude: reading on-chip lfuse data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Bohuzial nic neblikalo, tak som chcel skusit naprogramovat iny hex, ale uz mi procesor nejde preprogramovat.
Avrdudess napise toto:
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Vsimol som si, ze v clanku su popisane poistky takto:
Ale v prikaze suNastavení pojistek (fuses) je: HFUSE=0xFF, LFUSE=0x7B (SPI povoleno, BOD vypnuto, 128kHz interní oscilátor s dobou spuštení 14 cyklů + 64ms).
Nie je rozdiel v lfuse?hfuse:w:0xFF:m -U lfuse:w:0x5F:m
Dokazem este takto naprogramovany procesor prerogramovat?
Preco neblika?
Dik za pomoc