avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Newbie: Help walking through the demos


From: Mark J Elkins
Subject: [avr-libc-dev] Newbie: Help walking through the demos
Date: Fri, 30 Dec 2005 17:16:34 +0200

Recently got the STK500 starter kit (comes with ATMEGA8515L [inserted]
and ATMEGA16)...

The ATMEL STK500 demo program runs fine.

I'm trying my best to follow the Demo Projects from
http://www.sax.de/~joerg/avr-libc-user-manual/group__demo__project.html

I'm running Gentoo - and have emerged the avr-libc stuff... and cross
compiler - etc...

My situation is:
# avr-gcc -g -Os -mmcu=atmega8515 -c demo1.c
demo1.c:22:47: iocompat.h: No such file or directory

So: Downloaded avr-libc 1.4.1 and found the include file...
(perhaps the folk creating the Emerge-able stuff didn't consider deo's
needed - and the web-site demo link to this file is broken)
however, define-ing "ATMEGA8515" gives me a ..
"Don't know what kind of MCU you are compiling for"

I could use the atmega16 - as iocompat.h knows about that chip...
- the code appears to compile fine... (Not completely sure what the
difference/advantages are between the two supplied CPUs yet)

I'd like to start experimenting without damaging anything (just yet :)
(ie - I'm not too confident in removing the in-place mega8515 - and
inserting the mega16 - which I think needs to be placed in the other 40
pin connector) - so if any one could give me some guidance ..

I'm also looking for someone to handhold me through uploading the Hex
code to the STK500 (using avrdude??)... ie what Jumpers and Cables
(ISP6PIN to SPROG3?, and Serial into RS232Ctrl?) I should be using on
the board - and what parameters should be used with avrdude - if used.

I should then be able to work through the other exercises myself... (but
pointers are welcome - I got myself a separate HD44780 LCD)

My background is Unix and 'C' rather than Micro's/Hardware ...

-- 
  .  .     ___. .__      Posix Systems - Sth Africa.  e.164 VOIP ready
 /| /|       / /__       address@hidden  -  Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS  Tel: +27 12 807 0590  Cell: +27 82 601 0496




reply via email to

[Prev in Thread] Current Thread [Next in Thread]