avr studio 4 prgming
Sun Feb 05 2012, 05:49 pm
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 ........
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
@ vijay.parmar1992
can u post a whole project file here along code
then we could help u better
can u post a whole project file here along code
then we could help u better
Mon Feb 06 2012, 10:21 pm
#include<avr/io.h>
#include<util/delay.h>
int main(void)
{
DDRA=0xFF;
while(1)
{
PORTA=~PORTA;
_delay_ms(1000);
}
}
#include<util/delay.h>
int main(void)
{
DDRA=0xFF;
while(1)
{
PORTA=~PORTA;
_delay_ms(1000);
}
}
Mon Feb 06 2012, 10:23 pm
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?
#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
@ vijay.parmar1992
atmega 8 has not a PORTA
it has PORT B,C and D
so it should be
i compile it on my pc with no error
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, 07:59 pm
@ vijay.parmar1992
yes i think there is something wrong with ur IDE setting
uninstall AVR Stdio and Winavr
and then again install it
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 ]
Fri Feb 10 2012, 12:57 am
@ vijay.parmar1992
u need two thing
avr stdio 4
winavr compiler
u need two thing
avr stdio 4
winavr compiler
[ Edited Fri Feb 10 2012, 12:58 am ]
Powered by e107 Forum System