Discussion in "AVR Discussion Forum" started by    vijay    Feb 5, 2012.
Sun Feb 05 2012, 05:49 pm
#1
when i compile programme in avr..i get this error...........


mmcu=atmega8 -Wl,-Map=multimeter.map multimeter.o -o multimeter.elf
/usr/bin/sh: -Wl,-Map=multimeter.map: command not found
make: [multimeter.elf] Error 127 (ignored)
avr-objcopy -O ihex -R .eeprom -R .fuse -R .lock -R .signature multimeter.elf multimeter.hex
avr-objcopy: 'multimeter.elf': No such file
make: *** [multimeter.hex] Error 1
Build failed with 1 errors and 0 warnings...



give me solution ........


Mon Feb 06 2012, 10:17 pm
#2
@ vijay.parmar1992
can u post a whole project file here along code
then we could help u better
Mon Feb 06 2012, 10:21 pm
#3
#include<avr/io.h>
#include<util/delay.h>
int main(void)
{
DDRA=0xFF;
while(1)
{
PORTA=~PORTA;
_delay_ms(1000);
}
}
Mon Feb 06 2012, 10:23 pm
#4
also if i write one line seperatly


#include<avr/io.h> its show same error............i m new to avr ...any configuration require before write the programme?
Tue Feb 07 2012, 09:04 am
#5
@ vijay.parmar1992
atmega 8 has not a PORTA
it has PORT B,C and D
so it should be
#include<avr/io.h>
#include<util/delay.h>
int main(void)
{
DDRD=0xFF;
while(1)
{
PORTD=~PORTD;
_delay_ms(1000);
}
}


i compile it on my pc with no error

Tue Feb 07 2012, 05:18 pm
#6
it also repeat that error
Tue Feb 07 2012, 05:34 pm
#7
we require any configuration before start programming
Tue Feb 07 2012, 07:59 pm
#8
@ vijay.parmar1992
yes i think there is something wrong with ur IDE setting
uninstall AVR Stdio and Winavr
and then again install it


[ Edited Tue Feb 07 2012, 09:05 pm ]
Wed Feb 08 2012, 11:13 pm
#9
i have avr studio 4................

i also need avr?
Fri Feb 10 2012, 12:57 am
#10
@ vijay.parmar1992
u need two thing
avr stdio 4
winavr compiler


[ Edited Fri Feb 10 2012, 12:58 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am