![]() |
![]() |
||
Atmel |
ISPArduino
Pfad: mknetz/Computer/Atmel |
||
Impressum |
|
Ein Arduino kann auch als ISP-Programmer dienen (ArduinoISP, Arduino-Uno-als-In-System-Programmer - www.heise.de/make). Anders als im make-Artikel beschrieben funktionierte das bei mir nur ohne den 10uF-Kondensator. Testweise wurde ein neuer Atmega8 ausgelesen.
Arduino Atmega8 5V ---------------- rot ----------- Vcc Pin7, AVcc Pin20 GND --------------- schwarz ------- GND Pin8, GND Pin22 digital 10 -------- gelb ---------- Reset Pin1 digital 11 -------- grün ---------- MOSI Pin17 digital 12 -------- weiß ---------- MISO Pin18 digital 13 -------- blau ---------- SCK Pin19
mk@x2:~$ avrdude -c avrisp -P /dev/ttyUSB0 -p m8 -b 19200 avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.05s avrdude: Device signature = 0x1e9307 avrdude: safemode: Fuses OK (E:FF, H:D9, L:E1) avrdude done. Thank you.
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer/usbasp/usbasp.2011-05-28/bin/firmware$ avrdude -c avrisp -P /dev/ttyUSB0 -b 19200 -p m8 -v -U flash:w:usbasp.atmega8.2011-05-28.hex avrdude: Version 6.0.1, compiled on Oct 21 2013 at 17:07:18 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mk/.avrduderc" Using Port : /dev/ttyUSB0 Using Programmer : avrisp Overriding Baud Rate : 19200 AVR Part : ATmega8 Chip Erase delay : 10000 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 4 20 128 0 no 512 4 0 9000 9000 0xff 0xff flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00 lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : STK500 Description : Atmel AVR ISP 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.05s avrdude: Device signature = 0x1e9307 avrdude: safemode: lfuse reads as 9F avrdude: safemode: hfuse reads as D9 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 "usbasp.atmega8.2011-05-28.hex" avrdude: input file usbasp.atmega8.2011-05-28.hex auto detected as Intel Hex avrdude: writing flash (4700 bytes): Writing | ################################################## | 100% 7.84s avrdude: 4700 bytes of flash written avrdude: verifying flash memory against usbasp.atmega8.2011-05-28.hex: avrdude: load data flash data from input file usbasp.atmega8.2011-05-28.hex: avrdude: input file usbasp.atmega8.2011-05-28.hex auto detected as Intel Hex avrdude: input file usbasp.atmega8.2011-05-28.hex contains 4700 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 4.33s avrdude: verifying ... avrdude: 4700 bytes of flash verified avrdude: safemode: lfuse reads as 9F avrdude: safemode: hfuse reads as D9 avrdude: safemode: Fuses OK (H:FF, E:D9, L:9F) avrdude done. Thank you.
mk@x2:~$ lsusb ... Bus 004 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC ...
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer/bootloader$ avrdude -c usbasp -p m162 -u -U flash:w:bootloader.hex avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9404 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: warning: cannot set sck period. please check for usbasp firmware update. avrdude: reading input file "bootloader.hex" avrdude: input file bootloader.hex auto detected as Intel Hex avrdude: writing flash (15832 bytes): Writing | ################################################## | 100% 0.00s avrdude: 15832 bytes of flash written avrdude: verifying flash memory against bootloader.hex: avrdude: load data flash data from input file bootloader.hex: avrdude: input file bootloader.hex auto detected as Intel Hex avrdude: input file bootloader.hex contains 15832 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 15832 bytes of flash verified avrdude done. Thank you.
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer/SnifferV2.07$ avrdude -c avr910 -p m162 -P /dev/ttyUSB0 -U flash:w:DCCsniffer.hex -U eeprom:w:DCCsniffer.eep -u -b 19200 avrdude: avr910_recv(): programmer is not responding
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer$ avrdude -c usbasp -p m162 avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9404 avrdude: safemode: Fuses OK (H:FF, E:99, L:62) avrdude done. Thank you.
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer/bootloader$ avrdude -c avrisp -P /dev/ttyUSB0 -p m162 -b 19200 -v avrdude: Version 6.1, compiled on Nov 23 2014 at 21:15:40 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mk/.avrduderc" Using Port : /dev/ttyUSB0 Using Programmer : avrisp Overriding Baud Rate : 19200 AVR Part : ATmega162 Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 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 ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 65 10 128 0 yes 16384 128 128 4500 4500 0xff 0xff eeprom 65 20 4 0 no 512 4 0 9000 9000 0xff 0xff lfuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 efuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 lock 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : STK500 Description : Atmel AVR ISP 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.05s avrdude: Device signature = 0x1e9404 avrdude: safemode: lfuse reads as DF avrdude: safemode: hfuse reads as 98 avrdude: safemode: efuse reads as F9 avrdude: safemode: lfuse reads as DF avrdude: safemode: hfuse reads as 98 avrdude: safemode: efuse reads as F9 avrdude: safemode: Fuses OK (E:F9, H:98, L:DF) avrdude done. Thank you.
mk@x2:~/Arbeitsfläche/Eisenbahn/dcc/DCCsniffer/bootloader$ avrdude -c avrisp -P /dev/ttyUSB0 -p m162 -b 19200 -u -U flash:w:bootloader.hex -U eeprom:w:bootloader.eep -v avrdude: Version 6.1, compiled on Nov 23 2014 at 21:15:40 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/etc/avrdude.conf" User configuration file is "/home/mk/.avrduderc" Using Port : /dev/ttyUSB0 Using Programmer : avrisp Overriding Baud Rate : 19200 AVR Part : ATmega162 Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 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 ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 65 10 128 0 yes 16384 128 128 4500 4500 0xff 0xff eeprom 65 20 4 0 no 512 4 0 9000 9000 0xff 0xff lfuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 efuse 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 lock 0 0 0 0 no 1 0 0 16000 16000 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : STK500 Description : Atmel AVR ISP 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.05s avrdude: Device signature = 0x1e9404 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 "bootloader.hex" avrdude: input file bootloader.hex auto detected as Intel Hex avrdude: writing flash (15832 bytes): Writing | ################################################## | 100% 0.00s avrdude: 15832 bytes of flash written avrdude: verifying flash memory against bootloader.hex: avrdude: load data flash data from input file bootloader.hex: avrdude: input file bootloader.hex auto detected as Intel Hex avrdude: input file bootloader.hex contains 15832 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.00s avrdude: verifying ... avrdude: 15832 bytes of flash verified avrdude: reading input file "bootloader.eep" avrdude: input file bootloader.eep auto detected as Intel Hex avrdude: writing eeprom (0 bytes): Writing | ################################################## | 100% 0.00s avrdude: 0 bytes of eeprom written avrdude: verifying eeprom memory against bootloader.eep: avrdude: load data eeprom data from input file bootloader.eep: avrdude: input file bootloader.eep auto detected as Intel Hex avrdude: input file bootloader.eep contains 0 bytes avrdude: reading on-chip eeprom data: Reading | | 0% 0.00sGleitkomma-Ausnahme (Speicherabzug geschrieben)