1

3

home

res_1

res_2

linux_mint

software

hardware

projekte

download

5

AVR Dude

Kontakt:

mail@sedna-robotics.ch

-


-

AVR Dude unter Linux Mint

-


-

AVR Dude Installieren :

Herunterladen im Terminal mit

sudo apt install avrdude

sudo avrdude -c avrisp -p m328 -P usb -v

or directly from here :

https://download.savannah.gnu.org/releases/avrdude/


Install LibUSB

sudo apt-get install libusb-dev
[sudo] password for office:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libusb-dev
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 29,9 kB of archives.
After this operation, 231 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libusb-dev amd64 2:0.1.12-28 [29,9 kB]
Fetched 29,9 kB in 0s (34,8 kB/s)
Selecting previously unselected package libusb-dev.
(Reading database ... 434359 files and directories currently installed.)
Preparing to unpack .../libusb-dev_2%3a0.1.12-28_amd64.deb ...
Unpacking libusb-dev (2:0.1.12-28) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up libusb-dev (2:0.1.12-28) ...

Das Program AVRDUDE ist in /usr/bin zu finden.
Die Datei 'avrdude.conf' ist in /etc zu finden.

avrdude -v

avrdude: Version 6.2
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/wtoffice/.avrduderc"
User configuration file does not exist or is not a regular file, skipping


avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again

AVRDUDE reads the configuration file from
/usr/local/etc/avrdude.conf

Interessante Links :

http://www.elektronik-labor.de/AVR/LPmikro85Linux.html

https://forum-raspberrypi.de/forum/thread/4084-raspberry-als-programmiergeraet-fuer-atmel-%C2%B5controller/

http://www.fischl.de/usbasp/

https://forum.myluna.de

http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/

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

MCS

dmesg | tail

[24482.470011] usb 1-9: Product: AVR-ISP
[24482.470013] usb 1-9: Manufacturer: ERFOS
[24482.470665] cdc_acm 1-9:1.0: ttyACM0: USB ACM device
[24918.660715] usb 1-9: USB disconnect, device number 11
[24923.743499] usb 1-9: new full-speed USB device number 12 using xhci_hcd
[24923.890559] usb 1-9: New USB device found, idVendor=16d0, idProduct=0002
[24923.890563] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[24923.890566] usb 1-9: Product: USB-ISP Prog I
[24923.890568] usb 1-9: Manufacturer: EMBUD & MCSELEC
[24923.890570] usb 1-9: SerialNumber: EMVEKCTT

usb-devices

T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=05 Dev#= 12 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=16d0 ProdID=0002 Rev=06.00
S: Manufacturer=EMBUD & MCSELEC
S: Product=USB-ISP Prog I
S: SerialNumber=EMVEKCTT
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)


Diamex

dmesg | tail

[23404.390289] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[23404.390292] usb 1-9: Product: USBasp
[23404.390295] usb 1-9: Manufacturer: www.fischl.de
[24475.666065] usb 1-9: USB disconnect, device number 10
[24482.324557] usb 1-9: new full-speed USB device number 11 using xhci_hcd
[24482.470004] usb 1-9: New USB device found, idVendor=16c0, idProduct=2a9b
[24482.470009] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[24482.470011] usb 1-9: Product: AVR-ISP
[24482.470013] usb 1-9: Manufacturer: ERFOS
[24482.470665] cdc_acm 1-9:1.0: ttyACM0: USB ACM device

usb-devices

T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=05 Dev#= 11 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=32 #Cfgs= 1
P: Vendor=16c0 ProdID=2a9b Rev=01.00
S: Manufacturer=ERFOS
S: Product=AVR-ISP
C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm

lsusb -t

|__ Port 9: Dev 14, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 9: Dev 14, If 1, Class=CDC Data, Driver=cdc_acm, 12M

avrdude -p m328 -P /dev/ttyACM0 -c stk500v2 -b 19200 -F -u -U flash:w:MyTest328.hex

http://www.nongnu.org/avrdude/user-manual/avrdude_4.html

-p partno

-P port

-c programmer-id

-b baudrate

-F no verify for the device signature

-u Disables the default behaviour of reading out the fuses three times

-U memtype:op:filename[:format]

flash

The flash ROM of the device.

w read the specified file and write it to the specified device memory

-i delay

-C config-file

avrdude -Cavrdude.conf -cstk500v1 -P\\.\COM3 -b115200 -p atmega8 -U flash:w:ArduinoISP2.cpp.hex:i

avrdude: AVR device initialized and ready to accept instructions

USBasp

dmesg | tail

[22019.055854] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[22019.055857] usb 1-9: Product: AVR-ISP
[22019.055859] usb 1-9: Manufacturer: ERFOS
[22019.056514] cdc_acm 1-9:1.0: ttyACM0: USB ACM device
[23398.925748] usb 1-9: USB disconnect, device number 9
[23404.243551] usb 1-9: new low-speed USB device number 10 using xhci_hcd
[23404.390285] usb 1-9: New USB device found, idVendor=16c0, idProduct=05dc
[23404.390289] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[23404.390292] usb 1-9: Product: USBasp
[23404.390295] usb 1-9: Manufacturer: www.fischl.de

usb-devices

T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=05 Dev#= 10 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=16c0 ProdID=05dc Rev=01.02
S: Manufacturer=www.fischl.de
S: Product=USBasp
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=50mA
I: If#= 0 Alt= 0 #EPs= 0 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)

avrdude -p m328 -P /dev/ttyACM0 -c usbasp -b 19200 -F -u -U flash:w:MyTest328.hex

-


M.Weber 09.10.2017

*

7

Disclaimer / Sitemap