Comic
Fay's Diary Comic
Kanji Transformer Series
Our Android Apps
Paper Toy
Animation
Dharma Cartoon
Figure Photo Collection
Flash Game
Old Work
Game & Software
About Us
Links
Ataya's Embedded Systems Blog
Green Tea Story
Green Tea Story
Play with BeagleBoneBlack
Studio Wallpaper & Sticker
Studio Wallpaper
Studio Wallpaper
The Sky Flower & The Temple Dog
Date
: Tue,21 July 2011
Writer : Ataya P

Working Platform :
Lenovo Notebook , Intel Pentium Dual Core T2080 1.73GHz
2Gbyte RAM
Ubuntu 10.04 LTS- the Lucid Lynx
Hardware :
ATMega168P development kit from Akitsuki shop at Akihabara
(ATmega168 328マイコンボー キット)
http://akizukidenshi.com/catal og/g/gK-04590/
You may also require AVR-USBasp as a hardware programmer
http://www.aitendo.co.jp/produ ct/2312
From my own experience, AVR microcontroller is the most easiest to start and development ever.
Most of mcu I tried are still hanging with Windows platform but AVR is different.
Now I will show you how to settup development environment on Ubuntu Linux.
Let's do it
1. Install AVR build tools (binary utilities, compiler, library and chip writer)
2. Download and install eclipse and cdt plug-in
3. Install avr-eclipse, Just like they said at ...
http://avr-eclipse.sourceforge .net/wiki/index.php/Plugin_Dow nload

4. Making new AVR project. At project properties, setting Post-build Command for making .hex file(where test-avr is your project name)
avr-objcopy -j .text -O ihex test-avr.elf test-avr.hex

5. At Target Hardware, select your target chip. In my case it is ATmega168p with 16 MHz clock

6. Eclipse plug-in seems to use AVR dude as a default hardware programer. At AVRdude -> Programmer Configuration, click Edit button.

Then select USBasp as your hardware programmer...

7. Unfortunately, my chip (ATmega168p) is not support by AVRdude for now ... So, I have to modify an AVRdude's configuration to support my chip.
Just like they said here ...
http://forums.adafruit.com/vie wtopic.php?f=24&t=14176
http://kanta.but.jp/wordpress/ ?p=494
All I did just add config of ATmega168p at the end of /etc/avrdude.conf fil e
6. Connect your board with AVR USBasp, Writing code, Building .hex and download to the board. It's should work.
Useful Link :
AVR microcontroller ->
http://www.atmel.com/products/ avr/default.asp?category_id=16 3&family_id=607&source =redirect
AVRdude project ->
http://savannah.nongnu.org/pro jects/avrdude

Writer : Ataya P

Working Platform :
Lenovo Notebook , Intel Pentium Dual Core T2080 1.73GHz
2Gbyte RAM
Ubuntu 10.04 LTS- the Lucid Lynx
Hardware :
ATMega168P development kit from Akitsuki shop at Akihabara
(ATmega168
http://akizukidenshi.com/catal
You may also require AVR-USBasp as a hardware programmer
http://www.aitendo.co.jp/produ
From my own experience, AVR microcontroller is the most easiest to start and development ever.
Most of mcu I tried are still hanging with Windows platform but AVR is different.
Now I will show you how to settup development environment on Ubuntu Linux.
Let's do it
1. Install AVR build tools (binary utilities, compiler, library and chip writer)
| #apt-get install binutils-avr gcc-avr avr-libc avrdude |
2. Download and install eclipse and cdt plug-in
3. Install avr-eclipse, Just like they said at ...
http://avr-eclipse.sourceforge

4. Making new AVR project. At project properties, setting Post-build Command for making .hex file(where test-avr is your project name)
avr-objcopy

5. At Target Hardware, select your target chip. In my case it is ATmega168p with 16 MHz clock

6. Eclipse plug-in seems to use AVR dude as a default hardware programer. At AVRdude -> Programmer Configuration, click Edit button.

Then select USBasp as your hardware programmer...

7. Unfortunately, my chip (ATmega168p) is not support by AVRdude for now ... So, I have to modify an AVRdude's configuration to support my chip.
Just like they said here ...
http://forums.adafruit.com/vie
http://kanta.but.jp/wordpress/
All I did just add config of ATmega168p at the end of /etc/avrdude.conf fil
| part id &n desc has_debugwire = yes; flash_instr = 0xB6, 0x01, 0x11; eeprom_instr = 0xBD, 0xF2, 0xBD, 0xE1, 0xBB, 0xCF, 0xB4, 0x00,     stk500_devcode = 0x86; # avr910_devcode = 0x; signature &nb pagel  bs2 & chip_erase_delay = 9000; pgm_enable &n   chip_erase &n   timeout&nb stabdelay &nb cmdexedelay & synchloops &n bytedelay &nb pollindex &nb pollvalue &nb predelay &nbs postdelay &nb pollmethod &n pp_controlstack &nb 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F, 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F, 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B, 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00; hventerstabdelay &n progmodedelay   latchcycle togglevtg& poweroffdelay   resetdelay resetdelay hvleavestabdelay &n resetdelay chiperasepulsewidth = 0; chiperasepolltimeout = 10; programfusepulsewidth = 0; programfusepolltimeout = 5; programlockpulsewidth = 0; programlockpolltimeout = 5; memory "eeprom"                               loadpage_lo = " 1 1 0 0         writepage = " 1 1 0 0         mode &n delay & blocksize = 4; readsize = 256;   memory "flash"                                                                             memory "lfuse"                   memory "hfuse"                   memory "efuse"                   memory "lock"                   memory "calibration"         memory "signature"         ; |
6. Connect your board with AVR USBasp, Writing code, Building .hex and download to the board. It's should work.
Useful Link :
AVR microcontroller ->
http://www.atmel.com/products/
AVRdude project ->
http://savannah.nongnu.org/pro

- ataya_p's blog
- Login to post comments
Custom Search

