{"id":680,"date":"2015-03-27T12:35:56","date_gmt":"2015-03-27T10:35:56","guid":{"rendered":"http:\/\/dety.net.ua\/?p=680"},"modified":"2015-03-27T12:35:56","modified_gmt":"2015-03-27T10:35:56","slug":"avrdude-burning-an-empty-atmega328p-pu-usbasp","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=680","title":{"rendered":"Avrdude + burning an empty ATMEGA328P-PU + Usbasp"},"content":{"rendered":"<p><strong>1. I tried to read the chip and check it:<\/strong><\/p>\n<blockquote><p>avrdude -c usbasp -p m328p<\/p>\n<p>avrdude: warning: cannot set sck period. please check for usbasp firmware update.<br \/>\navrdude: error: programm enable: target doesn&#8217;t answer. 1<br \/>\navrdude: initialization failed, rc=-1<br \/>\nDouble check connections and try again, or use -F to override<br \/>\nthis check.<\/p>\n<p>avrdude done.\u00a0 Thank you.<\/p><\/blockquote>\n<p><strong>2. After some googling I decided just burn it:<\/strong><\/p>\n<blockquote><p>avrdude -c usbasp -p m328p -U flash:w:TransistorTester.hex -U eeprom:w:TransistorTester.eep -v<\/p>\n<p>avrdude: Version 5.11-Patch#7610, compiled on Aug 31 2011 at 08:02:19<br \/>\nCopyright (c) 2000-2005 Brian Dean, http:\/\/www.bdmicro.com\/<br \/>\nCopyright (c) 2007-2009 Joerg Wunsch<\/p>\n<p>System wide configuration file is &#8220;avrdude.conf&#8221;<\/p>\n<p>Using Port\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : lpt1<br \/>\nUsing Programmer\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : usbasp<br \/>\nAVR Part\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : ATMEGA328P<br \/>\nChip Erase delay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 9000 us<br \/>\nPAGEL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : PD7<br \/>\nBS2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : PC2<br \/>\nRESET disposition\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : dedicated<br \/>\nRETRY pulse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : SCK<br \/>\nserial program mode\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : yes<br \/>\nparallel program mode\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : yes<br \/>\nTimeout\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 200<br \/>\nStabDelay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 100<br \/>\nCmdexeDelay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 25<br \/>\nSyncLoops\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 32<br \/>\nByteDelay\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 0<br \/>\nPollIndex\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 3<br \/>\nPollValue\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 0x53<br \/>\nMemory Detail\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 :<\/p>\n<p>Block Poll\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Page\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Polled<br \/>\nMemory Type Mode Delay Size\u00a0 Indx Paged\u00a0 Size\u00a0\u00a0 Size #Pages MinW\u00a0 MaxW\u00a0\u00a0 ReadBack<br \/>\n&#8212;&#8212;&#8212;&#8211; &#8212;- &#8212;&#8211; &#8212;&#8211; &#8212;- &#8212;&#8212; &#8212;&#8212; &#8212;- &#8212;&#8212; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212;&#8212;<br \/>\neeprom\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 65\u00a0\u00a0\u00a0 20\u00a0\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1024\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 3600\u00a0 3600 0xff 0xff<br \/>\nflash\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 65\u00a0\u00a0\u00a0\u00a0 6\u00a0\u00a0 128\u00a0\u00a0\u00a0 0 yes\u00a0\u00a0\u00a0\u00a0 32768\u00a0 128\u00a0\u00a0\u00a0 256\u00a0 4500\u00a0 4500 0xff 0xff<br \/>\nlfuse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4500\u00a0 4500 0x00 0x00<br \/>\nhfuse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4500\u00a0 4500 0x00 0x00<br \/>\nefuse\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4500\u00a0 4500 0x00 0x00<br \/>\nlock\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0 4500\u00a0 4500 0x00 0x00<br \/>\ncalibration\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0 0x00 0x00<br \/>\nsignature\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0 0 no\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0 0x00 0x00<\/p>\n<p>Programmer Type : usbasp<br \/>\nDescription\u00a0\u00a0\u00a0\u00a0 : USBasp, http:\/\/www.fischl.de\/usbasp\/<\/p>\n<p>avrdude: auto set sck period (because given equals null)<br \/>\navrdude: warning: cannot set sck period. please check for usbasp firmware update.<br \/>\navrdude: AVR device initialized and ready to accept instructions<\/p>\n<p>Reading | ################################################## | 100% 0.02s<\/p>\n<p>avrdude: Device signature = 0x1e950f<br \/>\navrdude: safemode: lfuse reads as 62<br \/>\navrdude: safemode: hfuse reads as D9<br \/>\navrdude: safemode: efuse reads as 7<br \/>\navrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed<br \/>\nTo disable this feature, specify the -D option.<br \/>\navrdude: erasing chip<br \/>\navrdude: auto set sck period (because given equals null)<br \/>\navrdude: warning: cannot set sck period. please check for usbasp firmware update.<br \/>\navrdude: reading input file &#8220;TransistorTester.hex&#8221;<br \/>\navrdude: input file TransistorTester.hex auto detected as Intel Hex<br \/>\navrdude: writing flash (23828 bytes):<\/p>\n<p>Writing | ################################################## | 100% 20.72s<\/p>\n<p>avrdude: 23828 bytes of flash written<br \/>\navrdude: verifying flash memory against TransistorTester.hex:<br \/>\navrdude: load data flash data from input file TransistorTester.hex:<br \/>\navrdude: input file TransistorTester.hex auto detected as Intel Hex<br \/>\navrdude: input file TransistorTester.hex contains 23828 bytes<br \/>\navrdude: reading on-chip flash data:<\/p>\n<p>Reading | ################################################## | 100% 15.51s<\/p>\n<p>avrdude: verifying &#8230;<br \/>\navrdude: 23828 bytes of flash verified<br \/>\navrdude: reading input file &#8220;TransistorTester.eep&#8221;<br \/>\navrdude: input file TransistorTester.eep auto detected as Intel Hex<br \/>\navrdude: writing eeprom (14 bytes):<\/p>\n<p>Writing | ################################################## | 100% 0.17s<\/p>\n<p>avrdude: 14 bytes of eeprom written<br \/>\navrdude: verifying eeprom memory against TransistorTester.eep:<br \/>\navrdude: load data eeprom data from input file TransistorTester.eep:<br \/>\navrdude: input file TransistorTester.eep auto detected as Intel Hex<br \/>\navrdude: input file TransistorTester.eep contains 14 bytes<br \/>\navrdude: reading on-chip eeprom data:<\/p>\n<p>Reading | ################################################## | 100% 0.01s<\/p>\n<p>avrdude: verifying &#8230;<br \/>\navrdude: 14 bytes of eeprom verified<\/p>\n<p>avrdude: safemode: lfuse reads as 62<br \/>\navrdude: safemode: hfuse reads as D9<br \/>\navrdude: safemode: efuse reads as 7<br \/>\navrdude: safemode: Fuses OK<\/p>\n<p>avrdude done.\u00a0 Thank you.<\/p><\/blockquote>\n<p><strong>Done!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. I tried to read the chip and check it: avrdude -c usbasp -p m328p avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: programm enable: target doesn&#8217;t answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude done.\u00a0 Thank [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,13],"tags":[],"class_list":["post-680","post","type-post","status-publish","format-standard","hentry","category-microcontrollers","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=680"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions"}],"predecessor-version":[{"id":681,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/680\/revisions\/681"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}