From Fab Lab Wiki - by NMÍ Kvikan
Jump to navigation
Jump to search
Description
|
Command
|
Answer
|
See if a program is installed (in this case a avrdude)
|
which avrdude
|
/usr/bin/avrdude
|
Install a program
|
sudo apt get install gvrasm
|
[sudo] password for fab: //Insert Fab Password
|
Run the program in this case gavrasm
|
gavrasm
|
|
Change Directory
|
cd Desktop
|
|
List Files
|
ls
|
|
Run the gavrasm to transform asm file to a ".hex" file (hexadecimal)
|
gavrasm hello.RGB.45.MTA.asm
|
|
Run the Avrdude comunicate to t45 using the parallel port
|
avrdude -p t45 -c bsd -U flash:w:hello.RGB.45.MTA.hex
|
avrdude: can't open device "/dev/parport0": Permission denied
failed to open parallel port "/dev/parport0"
|
List [ls] paralel port with detail [-l] (crw-rw----)
|
ls -l /dev/parport0
|
crw-rw---- 1 root lp 99, 0 2010-01-14 11:30 /dev/parport0
|
Change permission to access parallel port, and insert fab user password
|
sudo chmod 0766 /dev/parport0
|
[sudo] password for fab:
|
List [ls] paralel port with detail [-l] and check the permission differences (crwxrw-rw-)
|
ls -l /dev/parport0
|
crwxrw-rw- 1 root lp 99, 0 2010-01-14 11:30 /dev/parport0
|
Run the Avrdude comunicate to t45 using the serial (com) port and install the hexadecimal program "hello.RGB.45.hex"
|
avrdude -p t45 -c dasa -P /dev/ttyS0 -U flash:w:hello.RGB.45.hex
|
|
Run the Avrdude comunicate to t45 using the serial (com) port and install the hexadecimal program "hello.RGB.45.hex" if your are in the directory w:/home/fab/Desktop/hello.RGB.45.hex
|
avrdude -p t45 -c dasa -P /dev/ttyS0 -U flash:w:/home/fab/Desktop/hello.RGB.45.hex
|
AVR device initialized and ready to accept instructions
|