Society of Robots - Robot Forum

Software => Software => Topic started by: subhechha on January 20, 2012, 08:02:16 AM

Title: problem arise in compiling AVR studio4.14
Post by: subhechha on January 20, 2012, 08:02:16 AM
hello .....i'm using window 7 ,64 bit as operating system. i have installed avr studio4.14. but the thing is the compiler cannot compile the program......i just like to know what exact the matter is ????   plzz help it's too urgent..

well ....i have attached the program .it's a line follwing one ....in case there is any mistake in program itself then kindly help me to rectify....

thank u....
Title: Re: problem arise in compiling AVR studio4.14
Post by: newInRobotics on January 20, 2012, 09:31:28 AM
It would be more helpfull to see what error message You get when compiler fails.
Title: Re: problem arise in compiling AVR studio4.14
Post by: subhechha on January 20, 2012, 10:31:02 AM
well...thanks for reply............now i feel quite fortunate coz ma compiler compiled but still doesnot producing .hex file and the stated warning is .... 


 avr-gcc.exe  -mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT kshitij_stalker1.o -MF dep/kshitij_stalker1.o.d  -c  ../kshitij_stalker1.c
In file included from ../kshitij_stalker1.c:2:
c:/winavr-20090313/lib/gcc/../../avr/include/util/delay.h:85:3: warning: #warning "F_CPU not defined for <util/delay.h>"
Build succeeded with 1 Warnings...
Title: Re: problem arise in compiling AVR studio4.14
Post by: newInRobotics on January 20, 2012, 08:23:35 PM
Compiler tels You exactly why it could not compile code correctly. Have a look at this:
Quote
avr-gcc.exe  -mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT kshitij_stalker1.o -MF dep/kshitij_stalker1.o.d  -c  ../kshitij_stalker1.c
In file included from ../kshitij_stalker1.c:2:
c:/winavr-20090313/lib/gcc/../../avr/include/util/delay.h:85:3: warning: #warning "F_CPU not defined for <util/delay.h>"
Build succeeded with 1 Warnings...

In case You did not get it already, add #define F_CPU (clock speed in Hz)UL after Your #includes.