AVRProgrammers: Unterschied zwischen den Versionen
| Keine Bearbeitungszusammenfassung | |||
| (13 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 52: | Zeile 52: | ||
| = Programmers = | = Programmers = | ||
| == RS-232 programmer (ATtiny2313) == | |||
| [[Bild:avrprog-rs232.jpg|thumb|200px|RS-232 (ATTiny2313) programmer]] | |||
| This programmer has a DB-9 serial port in one end and a 10-pin ISP header in the other end. | This programmer has a DB-9 serial port in one end and a 10-pin ISP header in the other end. | ||
| Zeile 66: | Zeile 66: | ||
|       id              = "m168"; |       id              = "m168"; | ||
|       avr910_devcode =  0x08; |       avr910_devcode =  0x08; | ||
| Note: This programmer requires the target to be self-powered. | |||
| === avrdude command lines === | === avrdude command lines === | ||
| Zeile 73: | Zeile 75: | ||
| == USBasp programmer (stripboard) == | == USBasp programmer (stripboard) == | ||
| [[Bild:avrprog-usbasp.jpg|thumb|200px|USBasp stripboard programmer]] | |||
| This is a USB programmer built on a stripboard. It has a USB-B connector in one end an a 10-pin ISP header in the other end. | This is a USB programmer built on a stripboard. It has a USB-B connector in one end an a 10-pin ISP header in the other end. | ||
| Zeile 87: | Zeile 91: | ||
|   avrdude -c usbasp -p atmega168 -U flash:w:ATmegaBOOT_168_ng.hex:i -U lock:w:0x0f:m |   avrdude -c usbasp -p atmega168 -U flash:w:ATmegaBOOT_168_ng.hex:i -U lock:w:0x0f:m | ||
| == [[ | == [[Avrprog-metaboard]] == | ||
| [[Bild:avrprog-metaboard.jpg|thumb|200px|Metaboard AVRprog programmer]] | |||
| A [[Metaboard]]-based programmer. | A [[Metaboard]]-based programmer. | ||
| Zeile 93: | Zeile 99: | ||
| This programmer behaves exactly like the USBasp stripboard programmer. | This programmer behaves exactly like the USBasp stripboard programmer. | ||
| [[ | In the current incarnation, this programmer is not as stable as the USBasp version. | ||
| We need to figure this out, e.g. ask [[User:cs|Christian]] for advice. | |||
| Symptoms are aborted operation during read or write. Usually it helps to try again and to run verify as a separate step. | |||
|  avrdude: error: wrong reading bytes b8 | |||
| Note: This programmer has a bootloader on it, so it can be updated over USB. There is a jumper to enable the bootloader. This jumper must be '''off''' when using it as a programmer and '''on''' when accessing the bootloader. | |||
| == [http://www.ladyada.net/make/usbtinyisp USBTinyISP] == | |||
| The USBTinyISP from Lady Ada. | |||
| FIXME: Safe vs. unsafe | |||
| Check connection: | |||
|  avrdude -c usbtiny -p atmega168 | |||
| == Any Arduino Board == | |||
| see [[Benutzer:Mihi/Programming-attiny45-mit-arduino]] | |||
| = Troubleshooting = | |||
| Sometimes, the following happens: | |||
| <tt> | |||
| avrdude: erasing chip<br/> | |||
| avrdude: error: programm enable: target doesn't answer. 1  | |||
| </tt> | |||
| This has shown to be caused by wrong crystal fuse settings, typically an issue when programming fresh chips. | |||
| To fix, program all fuses first, before erasing the chip. | |||
| [[Kategorie:Arduino]] | [[Kategorie:Arduino]] | ||