(MCU AVR) ATmega328P (Arduino Uno)

修復USB ISP(zhifengsoft)無法使用avrdude的問題


參考資訊:
1. uno
2. ArduinoISP
3. making-usbasp-chinese-clones-usable
4. Digispark-Attiny85-Pinout-738150591

USB ISP燒錄器目前只能使用ProgISP,而這個軟體目前只能在Windows下使用(竟然無法在Linux下使用),而最可惜的是avrdude竟然不支援USB ISP燒錄器,於是司徒花了一些時間上網找了一下資料,發現國外有人透過硬體跳線解決問題,但是這畢竟比較麻煩一點,最好可以透過韌體解決,而幸運地,司徒最終找到這個方法,接著司徒將修改過程說明如下:


PCB正面(Atmega88)


PCB背面


因為需要透過Arduino Uno更新USB ISP(變成USBasp)韌體,因此,必須先把Arduino Uno變成一台燒錄器


確定Port


燒錄


接著連接USB ISP和Arduino Uno(腳位如下):

Arduino UNOUSB ISP
SCKSCK
VCCVCC
GNDGND
MISOMISO
MOSIMOSI
Pin10Reset
RESET10uF




在燒錄時,USB ISP Reset腳位必須手動連接


usbasp.atmega88.2011-05-28.hex

:1000000042C0ADC15BC05AC059C058C057C056C0ED
:1000100055C054C053C052C051C050C04FC04EC054
:100020004DC04CC04BC04AC049C048C047C046C084
:1000300045C044C0040309041C037700770077001F
:100040002E00660069007300630068006C002E00DB
:10005000640065000E035500530042006100730008
:10006000700012011001FF000008C016DC05040139
:1000700001020001090212000101008019090400B7
:1000800000000000000011241FBECFEFD4E0DEBF4F
:10009000CDBF11E0A0E0B1E0EAE6F2E102C00590D8
:1000A0000D92A230B107D9F711E0A2E0B1E001C092
:1000B0001D92AA34B107E1F767D5D5C8A1CFE9E60B
:1000C000F0E0808183608083E89A08951F93CF9346
:1000D000DF9360912801635067FD13C08091250173
:1000E000CCE0D0E0C81BD109C45DDE4F8091240173
:1000F0008D3209F462C08091020187FD84C01092A4
:1001000028018091000184FF4AC0609101016F3F86
:1001100009F445C0693070F1685060930101809125
:10012000180198E889278093180168E080910201FE
:1001300087FD8BC0209126013091270186FF6DC07D
:10014000A9E1B1E080E090E0F901E80FF91FE49146
:10015000ED9301966817C1F76150862F90E06F5FAD
:100160000196820F931F9093270180932601162FEB
:100170001C5F0BC0109201018091180198E889273B
:1001800080931801662391F614E089E191E0E3D0B1
:100190001C3019F08FEF809301011093000194E15E
:1001A00083B1837031F49150D9F7109229011092E4
:1001B0002301DF91CF911F910895683009F09FCFFF
:1001C00083EC809318018AE580930001109202016C
:1001D0008881807659F59A8110922101898188233E
:1001E00009F043C01092220122E081E291E0909355
:1001F0002701809326018F81882319F49E8192170D
:1002000008F1922F1FC0CE01D0D48F3F51F1882327
:1002100009F475CF1092010172CFD901962FE9E14F
:10022000F1E08D9181939150E1F796CFCE0105D603
:10023000282F8F3F01F7888187FD25C09FEF80E839
:1002400080930201909301015ACF89E191E083D517
:10025000682F893008F453C08FEF809301011EE1AD
:100260009CCF8EE1809300014ACF853071F08630BB
:1002700091F0883031F1893061F18A3031F120E03C
:1002800081E291E0B4CF9E81DACF9093290120E002
:1002900081E291E0ACCF8B81813049F18230F9F07D
:1002A000833029F020E080E480930201A4CF9923D9
:1002B00049F584E390E0909327018093260124E0A0
:1002C000F2CF21E08BE291E092CF21E081E291E058
:1002D0008ECF90932B0120E081E291E088CF84E7DC
:1002E00090E0909327018093260122E1DCCF82E603
:1002F00090E0909327018093260122E1D4CF182F1C
:100300001C5F43CF913051F0923061F684E590E06C
:1003100090932701809326012EE0C5CF88E390E0DB
:1003200090932701809326012CE1BDCFA82FB92FF0
:1003300080E090E041E050EA609530E009C02D9106
:1003400082279795879510F084279527305EC8F30C
:100350006F5FA8F30895EADF8D939D930895CF937F
:10036000CFB7CF93C395189BE9F7189B09C0189B8B
:1003700007C0189B05C0189B03C0189B01C0A1C0F3
:10038000DF93C0912501DD27C45DDE4F189B02C0BD
:10039000DF91EBCF2F930F931F9303B12FEF00FB50
:1003A00020F94F933F9313B14FEF012700FB21F941
:1003B0003BE031C04E7F012F13B1216028C0102FC8
:1003C0004D7F2260000003B129C04B7F2460012FC4
:1003D000000013B12BC013B1477F28602AC04F7EA5
:1003E00003B120612CC04F7D13B120622FC04F7B21
:1003F00003B1206432C0422703B149934FEF00009C
:10040000102710FB20F913B11370C9F1297F91F265
:10041000012700FB21F903B1237F89F2315058F104
:10042000102710FB22F913B1277E79F2012700FB78
:1004300023F92F7C81F203B1102710FB24F92F79C7
:1004400071F200C013B1012700FB25F92F7359F297
:1004500000C003B1102710FB26F9223040F200C083
:1004600013B1012700FB27F9243028F64F772068C5
:1004700013B10000F9CF11E01CBB002717C03B509F
:100480003195C31BD04011E01CBB0881033CE9F04F
:100490000B34D9F0209123011981110F1213EDCFE4
:1004A000093641F10D3211F0013E39F700932A016E
:1004B0003F914F911F910F912F91DF91CCB3C0FDD0
:1004C00051CFCF91CFBFCF91189520912A012223F0
:1004D00079F310912801112311F5343012F1309382
:1004E000280120932401109125013BE0311B30931A
:1004F000250117C00091280101308CF40AE53091E4
:10050000000134FD10C000930001C8E1D1E00FC02C
:100510002795A8F45150A9F4220F0000F9CF4AE51D
:1005200003C042ED01C0432FC4E1D0E032E014B17A
:100530001360289A14B905B120E413E05F930127F2
:1005400056E005B9279520F4515021F4220FF9CF38
:10055000012756E000003B5A05B9D0F2279528F450
:10056000515029F4220F0000F9CF012756E02795BA
:1005700005B920F4515021F4220FF9CF012756E09C
:100580002991332305B921F60C7F10912901110F10
:10059000C651D04005B911F01093230111E01CBBE6
:1005A000016014B11C7F402F4C7F5F9100C000C0E0
:1005B00005B914B945B97CCF809145018CBD8091B6
:1005C00042018DBD0895282F8823A1F0883008F0BE
:1005D00042C085E893E09093440180934301243026
:1005E00019F12530B8F0263099F1263068F127301E
:1005F000F9F0089586EA93E09093440180934301D3
:1006000081E08093470182E58093450181E08093FA
:10061000420108952230A1F0233070F4213049F7CF
:1006200080EC80934701089588E180934701089505
:1006300083E080934701089580E380934701089504
:1006400080E68093470108958CE0809347010895E8
:1006500020934701089586EA93E0909344018093A4
:1006600043011092420181E080934701293041F01B
:100670002A3050F4283039F683E5809345010895F7
:1006800082E58093450108952B3029F02C3009F044
:10069000BACF8093420181E580934501089526B544
:1006A0009091470186B5821B8917E0F3089584B1C4
:1006B0008C6284B92A982D9896B52091470186B509
:1006C000891B8217E0F32A9A96B586B5891B821793
:1006D000E0F32A988091430190914401865A934017
:1006E00019F0109246010895809145018CBD8091CA
:1006F00042018DBD10924601089584B1837D84B975
:1007000085B1837D85B91CBC0895582F2091470180
:1007100040E030E057FD16C02B98440F1C994F5F06
:100720002D9A96B586B5891B8217E0F32D9896B55C
:1007300086B5891B8217E0F33F5F383029F0550FEB
:1007400057FFEACF2B9AE9CF842F08958EBD0DB4C1
:1007500007FEFDCF8EB508950F931F930FE1E09133
:100760004301F09144018CEA0995E0914301F09135
:10077000440183E50995E0914301F091440180E053
:100780000995182FE0914301F091440180E009950B
:10079000133561F11CBC26B59091470186B5821BCB
:1007A0008917E0F32A9A26B586B5821B8917E0F3EC
:1007B0002A9826B586B5821B8917E0F3E09143019C
:1007C000F091440183E0E63AF80721F0002351F06C
:1007D0000150C9CF809145018CBD809142018DBDF2
:1007E0000023B1F781E01F910F91089580E01F91E0
:1007F0000F9108959B01AC0181E15695479537957E
:1008000027958A95D1F7809146018217D9F02093D8
:100810004601E0914301F09144018DE40995E09196
:100820004301F091440180E00995E0914301F0918A
:100830004401809146010995E0914301F091440102
:1008400080E009950895EF92FF920F931F937B012B
:100850008C01D0DF8E2D8170880F880F880FE0917A
:100860004301F091440180620995D801C70129E054
:10087000B695A795979587952A95D1F7E09143016D
:10088000F0914401099516950795F794E794E09146
:100890004301F09144018E2D0995E0914301F091BF
:1008A000440180E009951F910F91FF90EF9008950A
:1008B0000F931F938C01E0914301F091440180EA72
:1008C0000995E0914301F0914401812F0995E09150
:1008D0004301F0914401802F0995E0914301F0918B
:1008E000440180E009951F910F910895FF920F93A5
:1008F0001F938C01F62EE0914301F091440180ECAE
:100900000995E0914301F0914401812F0995E0910F
:100910004301F0914401802F0995E0914301F0914A
:1009200044018F2D09958EE1B9D080E01F910F9180
:10093000FF900895CF92DF92EF92FF920F931F9353
:100940006B017C01142F56DFE0914301F0914401CB
:100950008CE40995D701C60149E0B695A79597950E
:1009600087954A95D1F7E0914301F09144010995AB
:10097000D701C601B695A79597958795E091430154
:10098000F09144010995E0914301F091440180E028
:1009900009951F3FF1F016B50EE1C701B60153DF0F
:1009A0008F3F79F486B5811B8D33B8F316B50150AE
:1009B000A1F781E01F910F91FF90EF90DF90CF9012
:1009C000089580E01F910F91FF90EF90DF90CF90FE
:1009D00008958FE063D080E01F910F91FF90EF901A
:1009E000DF90CF900895CF92DF92EF92FF920F9316
:1009F0001F936B017C01042F122FFCDE8C2D817064
:100A0000880F880F880FE0914301F09144018064C2
:100A10000995D701C60169E0B695A7959795879581
:100A20006A95D1F7E0914301F09144010995D7010E
:100A3000C601B695A79597958795E0914301F091EA
:100A400044010995E0914301F0914401802F0995FB
:100A50001123C1F00F37F1F016B50EE1C701B60151
:100A6000F2DE8F3779F486B5811B8D33B8F316B576
:100A70000150A1F781E01F910F91FF90EF90DF905F
:100A8000CF90089580E01F910F91FF90EF90DF903D
:100A9000CF9008958FE002D080E0F5CF382F8823E3
:100AA00049F020E096B586B5891B8C33E0F32F5FC3
:100AB0002317C0F30895259A23982B9A50E217D054
:100AC0005A95E9F70895AC0188E605D0842F03D044
:100AD00089E601D0852F0FD028E030E0382780FB51
:100AE000869506D02A95D1F730FB02D000D06894C5
:100AF00023982B9A16F02B98239AE0914801F091B5
:100B000049013197F0F72D9AE3B1E3FBE0914801F9
:100B1000F09149013197F0F72D98089520ECE7DF27
:100B200046F42A95E1F780E02AE1E5DF2A95E9F726
:100B3000DECF28E030E0DBDF869587F938272A957D
:100B4000D1F7D5DF27F9322772F3D1DFD0CFDB0120
:100B5000742FB9DF84E2BFDFE1DF8D937A95D1F79F
:100B60000895DB01742FAFDF83EFB5DF8DE1B3DFD5
:100B700084E6B1DF8D91AFDF82E7ADDFCFDF807834
:100B8000D9F77A9589F708951BB815B88BEF8AB90C
:100B90008FEF84B914B893E097B98EEF88B995BDFB
:100BA0008EDA789493DA92DAFDCFFF920F931F9347
:100BB000CF93DF93082F792FF62E40910301413018
:100BC00069F0443059F0463009F492C01FEF812F8C
:100BD000DF91CF911F910F91FF900895FF2009F4AD
:100BE000B2C0802F972F9C01E90110E053C0809183
:100BF000140190911501892B09F058C060911001E2
:100C0000709111018091120190911301488121E0AE
:100C1000EADE80910401909105010197909305010E
:100C200080930401892BD9F410920301809116015D
:100C300081FF3AC08091170190E02091140130911A
:100C400015018217930781F16091100170911101D4
:100C5000809112019091130148816CDE11E0809126
:100C6000100190911101A0911201B0911301019610
:100C7000A11DB11D8093100190931101A093120149
:100C8000B093130121969E01201B2F1508F09FCFD2
:100C900040910301413009F4AACF80911001909155
:100CA0001101688123DEB5CF11E0D9CF6091100129
:100CB000709111018091120190911301488120E0FF
:100CC00092DE80911701815080931701882309F0EB
:100CD000A0CF60911001709111018091120190914B
:100CE0001301488127DE809114018093170191CF71
:100CF0008091100190911101602F4F2D32DF809172
:100D0000100190911101A0911201B09113018F0D6A
:100D1000911DA11DB11D8093100190931101A0930D
:100D20001201B093130180910401909105018F1974
:100D300091099093050180930401892B21F410926D
:100D4000030111E044CF10E0812FDF91CF911F917B
:100D50000F91FF9008950F931F93CF93DF93082F68
:100D6000792F162F40910301842F8250823050F04A
:100D7000453009F446C01FEF812FDF91CF911F91BD
:100D80000F9108954530E9F1662399F1802F9C0178
:100D9000E90120C0809110019091110189DD8883C3
:100DA0008091100190911101A0911201B091130155
:100DB0000196A11DB11D8093100190931101A09384
:100DC0001201B093130121969E01201B211778F484
:100DD000409103014230F1F66091100170911101D0
:100DE00080911201909113012EDD8883D9CF1830A4
:100DF00018F610920301812FDF91CF911F910F916F
:100E000008958091100190911101602F412F9FDE74
:100E10008091100190911101A0911201B0911301E4
:100E2000810F911DA11DB11D80931001909311019F
:100E3000A0931201B09313019FCF0F931F93CF93F1
:100E4000DF938C01DC0111968C91813009F44EC046
:100E5000823009F4E7C0833009F455C0843009F4C6
:100E6000B5C0873009F486C0853009F45AC1863090
:100E700009F410C1883009F4DBC0893009F458C185
:100E80008A3009F469C18B3009F49CC18C3009F4B3
:100E9000B7C18D3009F4CBC18E3009F4CFC18F308A
:100EA00009F065C1F801938180E0228130E0822B56
:100EB000932BAA2797FDA095BA2F809310019093AA
:100EC0001101A0931201B0931301978180E0268154
:100ED00030E0822B932B909305018093040185E0F1
:100EE000809303018FEFC8E0D1E038C0329B3FC050
:100EF0008091060168DB109207014198D8DB80E001
:100F0000C8E0D1E02BC0E0914301F0914401D80149
:100F100012968C910995C8E0D1E080930801E09188
:100F20004301F0914401D80113968C910995809367
:100F30000901E0914301F0914401D80114968C918C
:100F4000099580930A01E0914301F0914401D80191
:100F500015968C91099580930B0184E0D09327011D
:100F6000C0932601DF91CF911F910F91089585E0E5
:100F70002ADBC1CF80910701882399F4F80193817E
:100F800080E0228130E0822B932BAA2797FDA09549
:100F9000BA2F8093100190931101A0931201B09386
:100FA0001301D80117969C91179780E016962C9103
:100FB00030E0822B932B909305018093040183E012
:100FC000809303018FEFC8E0D1E0C8CF8091070183
:100FD000882399F4F801938180E0228130E0822B0C
:100FE000932BAA2797FDA095BA2F80931001909379
:100FF0001101A0931201B0931301D80117969C918F
:10100000179780E016962C9130E0822B932B9093CB
:1010100005018093040182E0809303018FEFC8E013
:10102000D1E09CCF6ADB419A80E0C8E0D1E096CF66
:10103000809107018823B1F4D80113969C911397EE
:1010400080E012962C9130E0822B932BAA2797FDFB
:10105000A095BA2F8093100190931101A0931201D3
:10106000B093130110921501109214011092160101
:10107000F801978180E0268130E0822B932B9093BA
:1010800005018093040184E0809303018FEFC8E0A1
:10109000D1E064CF80910701882399F4F80193810E
:1010A00080E0228130E0822B932BAA2797FDA09528
:1010B000BA2F8093100190931101A0931201B09365
:1010C0001301D80114968C91149715969C91292F91
:1010D0002F7020931601492F50E0407F50704295A9
:1010E0005295507F5427407F5427480F511D5093ED
:1010F00015014093140120FF02C040931701F8012D
:10110000978180E0268130E0822B932B909305011C
:101110008093040181E0809303018FEFC8E0D1E068
:101120001DCF1ADBC8E0D1E08093080181E016CF23
:1011300081E080930701F80182819381A481B581C8
:101140008093100190931101A0931201B0931301A9
:1011500080E0C8E0D1E002CFD80112968C91809354
:101160000601C8E0D1E01092080181E0F7CE80319D
:1011700009F040C0D80113969C91139780E0129615
:101180002C9130E0822B932BAA2797FDA095BA2FA4
:101190008093100190931101A0931201B093130159
:1011A000F801978180E0268130E0822B932B909389
:1011B00005018093040186E0809303018FEFC8E06E
:1011C000D1E0CCCEF801938180E0228130E0822B07
:1011D000932B90934901809348012A9A229A83E0A5
:1011E0005DDC2A98419880E159DC65DC80E0C8E04C
:1011F000D1E0B4CE8F3751F180E0C8E0D1E0AECE7F
:1012000080EC69DC80E067DC8AE048DC2A9A85E0D3
:1012100045DC2A9885E042DC84B1837D84B985B1C0
:10122000837D85B9419A80E0C8E0D1E097CE76DC35
:10123000C8E0D1E08093080181E090CED8011296F9
:101240008C9149DC80E0C8E0D1E088CEC8E0D1E0F4
:1012500081E0809308011092090110920A01109216
:0A1260000B0184E07BCEF894FFCF71
:02126A005AFF29
:00000001FF

Patch USBasp Firmare(185行)改成如下:

:100B8000D9F77A9589F708951BB815B880EF8AB917

燒錄Patch Firmware(patch.hex)

$ sudo apt-get update
$ sudo apt-get install avrdude
$ sudo avrdude -vv -c stk500v1 -b 19200 -P /dev/ttyACM0 -p m88 -U flash:w:patch.hex:i

avrdude: Version 6.3, compiled on Nov  8 2018 at 17:56:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega88
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no        512    4      0  3600  3600 0xff 0xff
           flash         65     6    64    0 yes      8192   64    128  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e930a (probably m88)
avrdude: safemode: hfuse reads as DD
avrdude: safemode: efuse reads as F9
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 "patch.hex"
avrdude: writing flash (4716 bytes):

Writing | ################################################## | 100% 6.67s

avrdude: 4716 bytes of flash written
avrdude: verifying flash memory against patch.hex:
avrdude: load data flash data from input file patch.hex:
avrdude: input file patch.hex contains 4716 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.34s

avrdude: verifying ...
avrdude: 4716 bytes of flash verified

avrdude: safemode: hfuse reads as DD
avrdude: safemode: efuse reads as F9
avrdude: safemode: Fuses OK (E:F9, H:DD, L:FF)

avrdude done.  Thank you.

完成後的LED會變成藍色(原本是紅色)


接著測試一下USB ISP燒錄功能

USB ISPATtiny85
VCC5V
GNDGND
RSTPB5
SCKPB2
MISOPB1
MOSIPB0




main.hex

:100000000EC015C014C013C012C011C010C00FC064
:100010000EC00DC00CC00BC00AC009C008C011241E
:100020001FBECFE5D2E0DEBFCDBF02D018C0E8CF03
:1000300082E087BB88BB2FE936E891E02150304051
:100040009040E1F700C0000018BA2FE936E891E0CF
:10005000215030409040E1F700C00000EBCFF89411
:02006000FFCFD0
:00000001FF

燒錄

$ sudo avrdude -vv -c usbasp -p t85 -U flash:w:main.hex:i

avrdude: Version 6.3, compiled on Nov  8 2018 at 17:56:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbasp
avrdude: seen device from vendor ->www.fischl.de<-
avrdude: seen product ->USBasp<-
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128  4500  4500 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF
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: auto set sck period (because given equals null)
avrdude: reading input file "main.hex"
avrdude: writing flash (98 bytes):

Writing | ################################################## | 100% 0.08s

avrdude: 98 bytes of flash written
avrdude: verifying flash memory against main.hex:
avrdude: load data flash data from input file main.hex:
avrdude: input file main.hex contains 98 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.05s

avrdude: verifying ...
avrdude: 98 bytes of flash verified

avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:DF, L:E2)

avrdude done.  Thank you.


返回上一頁