In der Mai 2010 Elektor ist ein Artikel über AVR Programmierung unter Linux. Nach langen Probieren habe ich es geschaft den USP Programmer von Chip45 anzusprechen. (http://www.chip45.com/AVR-ISP-Programmieradapter/CrispAVR-USB-V2-2-STK500-USB-ISP-Programmieradapter.html) Ich schreibe mal meine Erfahrungen: 1. beim Kernel 2.6 .. ist der Driver für den ftd232 schon vorhanden! Der Driver von der Hompage läst sich nicht compilieren, da eine modversions.h fehlt! Warscheinlich gibt es diese nicht mehr. 2. mit lsusb läst sich überprüfen ob der FDT erkannt wurde. rechner:/home/michael# lsusb Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC Bus 001 Device 003: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub sehr geholfen hat mir diese Seite:(http://forum.ubuntuusers.de/topic/problem-mit-usb-seriell-wandler-geloest/) 3. unter /dev sollte ein ttyUSB0 vorhanden sein. 4. richtig aufrufen! Das ist der aufruf laut ELEKTOR: rechner:/home/michael# avrdude -vvv -c stk500v2 -P USB -p m644p avrdude: Version 5.5, compiled on Jan 14 2009 at 06:21:50 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ System wide configuration file is "/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 : stk500v2 avrdude: ser_open(): can't open device "USB": No such file or directory rechner:/home/michael# Es wurde nix gefunden. :-( Da der komplette Path angegeben werden muss!!! Hiermit hat es dann gefuntzt: Wichtig USB groß schreiben!!! rechner:/home/michael# avrdude -vvv -c stk500v2 -P /dev/ttyUSB0 -p m644p avrdude: Version 5.5, compiled on Jan 14 2009 at 06:21:50 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ System wide configuration file is "/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/ttyUSB0 Using Programmer : stk500v2 avrdude: stk500v2_getsync(): found AVRISP programmer AVR Part : ATMEGA644P 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 ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 10 128 0 no 2048 8 0 9000 9000 0xff 0xff Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 33 6 256 0 yes 65536 256 256 4500 4500 0xff 0xff Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Programmer Type : STK500V2 Description : Atmel STK500 Version 2.x firmware Programmer Model: AVRISP Hardware Version: 2 Firmware Version: 2.10 Vtarget : 3.4 V SCK period : 1.1 us avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.10s avrdude: Device signature = 0x1e960a avrdude: safemode read 1, lfuse value: f7 avrdude: safemode read 2, lfuse value: f7 avrdude: safemode read 3, lfuse value: f7 avrdude: safemode: lfuse reads as F7 avrdude: safemode read 1, hfuse value: dc avrdude: safemode read 2, hfuse value: dc avrdude: safemode read 3, hfuse value: dc avrdude: safemode: hfuse reads as DC avrdude: safemode read 1, efuse value: ff avrdude: safemode read 2, efuse value: ff avrdude: safemode read 3, efuse value: ff avrdude: safemode: efuse reads as FF avrdude: safemode read 1, lfuse value: f7 avrdude: safemode read 2, lfuse value: f7 avrdude: safemode read 3, lfuse value: f7 avrdude: safemode: lfuse reads as F7 avrdude: safemode read 1, hfuse value: dc avrdude: safemode read 2, hfuse value: dc avrdude: safemode read 3, hfuse value: dc avrdude: safemode: hfuse reads as DC avrdude: safemode read 1, efuse value: ff avrdude: safemode read 2, efuse value: ff avrdude: safemode read 3, efuse value: ff avrdude: safemode: efuse reads as FF avrdude: safemode: Fuses OK avrdude done. Thank you. Ich hoffe diese Beschreibung ist hiefreich. Viel Spass bei der AVR Programmierung unter Linux Gruß Michael
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.