Errors in programmin Atmega 128

25 views
Skip to first unread message

abhi

unread,
Jul 6, 2010, 11:04:54 AM7/6/10
to openuniboard
Dear Sir,
While programming the uniboard using avr dude in ubuntu, i
get the following errors when i execute make all. please let me know
what packages are needed to be installed in order to eliminate these
errors...

got.c:1:19: warning: avr/io.h: No such file or directory
got.c:2:26: warning: avr/interrupt.h: No such file or directory
got.c:3:23: warning: util/delay.h: No such file or directory
got.c: In function ‘main’:
got.c:7: error: ‘ADMUX’ undeclared (first use in this function)
got.c:7: error: (Each undeclared identifier is reported only once
got.c:7: error: for each function it appears in.)
got.c:8: error: ‘ADCSRA’ undeclared (first use in this function)
got.c:9: warning: implicit declaration of function ‘sei’
got.c:10: error: ‘DDRC’ undeclared (first use in this function)
got.c: At top level:
got.c:19: warning: return type defaults to ‘int’
got.c:19: warning: function declaration isn’t a prototype
got.c: In function ‘ISR’:
got.c:19: warning: type of ‘ADC_vect’ defaults to ‘int’
got.c:21: error: ‘ADCH’ undeclared (first use in this function)
got.c:22: error: ‘PORTC’ undeclared (first use in this function)
got.c:23: warning: implicit declaration of function ‘_delay_us’
make: *** [got.o] Error 1
abhijeet@ubuntu:~/Desktop/got$

Hardik Shah

unread,
Jul 25, 2010, 7:36:46 PM7/25/10
to openun...@googlegroups.com
You need to install the package name as avr-libc
you can use the following commands to install avr debian packages on linux terminal

$sudo aptitude update
$sudo aptitude install gcc-avr
$sudo aptitude install binutils-avr
$sudo aptitude install avr-libc
$sudo aptitude install avrdude
$sudo aptitude install gtkterm
$sudo aptitude install gedit-plugins


ABHIJEET TARE

unread,
Jul 27, 2010, 6:23:46 AM7/27/10
to openun...@googlegroups.com
Thank u.. :) 
Reply all
Reply to author
Forward
0 new messages