If you have added Packman repositories just install the following packages, although most are in the Main OSS repositorie:
cross-avr-gcc
cross-avr-binutils
avr-libc
avrdude
The latter is a command line application that programs AVRs (and other micros), it is also useful if you program AVRs outside the Arduino environment.
The really important steps follow, as superuser do:
#chmod 777 /var/lock
#chmod 777 /dev/ttyUSB0
These are also useful when using minicom (/var/lock) and USB serial port to comunicate with RS232 computers (/dev/ttyUSB0).
These instructions were adapted from here, some of the steps are not necessary, others really important.
To use my AVRISP mk II in SUSE 10.3 I needed to change a udev rules to add the device as accessible to every use, I added the following line at the end of /etc/udev/rules.d/50-udev-default.rules :
# AVRISP mk IIIt turns out that it still doesn't work... when trying to use avrdude with the -P usb option it complaints that it was not compiled with USB support...
SUBSYSTEM=="usb",SYSFS{idVendor}=="03eb",SYSFS{idProduct}=="2104",MODE="0666"
Uninstall avrdude (keep uisp, avrlibc needs one of them otherwise yast complains), download the sources then configure and install to /opt/cross..
# gunzip -c avrdude-5.8.tar.gz | tar xf -
# cd avrdude-5.8
# ./configure --prefix=/opt/cross
# make
# su
# make install
Test it connecting the AVRISP mk II to an Arduino with the command:
#avrdude -c avrispmkII -p m168 -P usb
1 comment:
Thanks :-)
Post a Comment