Computer Interface Connection
- Connect the FTDI cable to PC and run the following command in terminal
ls /devIn the list if you see something like "ttyUSB0" than the FTDI cable is correctly installed. - Connect AVR ISP mkII to PC
- Connect the AVR ISP mkII 6 pin programming header to Board
- Connection for AVR ISP mkII Programmer
Programming in Ubuntu
Setting up Ubuntu for AVR development
You need following package for setting up your ubuntu of AVR programing
1. gcc-avr The GNU c compiler for AVR
Libusb may be in a "universal" repository so you probably want to modify your repository list to include the "universal" repositories. libusb-dev is required if you want to use usb programmer such as avrisp2 or usbtiny
5. AVRDUDE - program to writes data on the microcontroll
5. AVRDUDE - program to writes data on the microcontroll
sudo apt-get install flex byacc bison gcc libusb-dev avrdude
sudo apt-get install gcc-avr
2. avr-libc C library for AVR
sudo apt-get install avr-libc
sudo apt-get install libc6-dev
3. binutils-avr - Essential utility of C compiler (it stands for "Binary Utilities").
6. avr-gdb The GNU debugger for AVR. This program runs from the
terminal avr-gdb, avr-gdbtui, avr-run
Open the terminal and navigate to the folder where you have filename.c and filename.make file and run follwing commads
1) Make Hex file
make -f
2) Program fuses using avrispmk2 programmer (or other programmer, see makefile)
sudo make -f
3) Program flash
sudo make -f
To run term.py
python term.py /dev/tttyUSB0 115200
No comments:
Post a Comment