|
From: | Ramesh Arise |
Subject: | [avr-gcc-list] Re: Problem to get .coff using Winavr and AVRstudio |
Date: | Tue, 2 Jan 2007 16:13:03 +0530 |
Hi,
I am new to use AVR - GCC. On windows-XP. I need your help. Currently i am using WinAVR-programmers notepad, AVR studio to work using ATmega168 microcontroller. I am getting some problem while using these tools (i am not getting the .cof file). Basically i am following the procedure as described below.
1] On Winavr programmers Note pad I am creating the New project(ex: project1), Then i am creating new file by FILE->NEW->C/C++
(ex: project1.c)
2] I am editing C-Program on this file, then add this file to the project+save.
3] In C:\WinAVR\sample there it contains a Make file. I am simply adding this make file to the project, On double clicking this make file it opens here i am specifying 3 options
A] MCU = atmega168
B] TARGET = Project name without Extension(project1)
C] OPT = 0
for simple one .c file
4] File->save
5] Tools->[Winavr] Makeall to compile the code.
6] Here in output window i am getting
**************************************************************************************************************************************************************
> " make.exe " all
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling C: project3.c
avr-gcc -c -mmcu=atmega168 -I. -gdwarf-2 -DF_CPU=8000000UL -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/project3.lst -std=gnu99 -Wundef -MD -MP -MF .dep/project3.o.d project3.c -o obj/project3.o
make.exe: *** No rule to make target `obj/main.o', needed by `project3.elf'. Stop.
> Process Exit Code: 2
> Time Taken: 00:02
**************************************************************************************************************************************************************
7] Then i am opening the TOOLS->OPTIONS in options window iam sellecting the TOOLS->ADD
here iam adding the properties: NAME :[Winavr]MakeExtcoff
Command : make.exe
Folder :%d
Parameters :extcoff
Consol i/o: Capture o/p
Use an Individual o/p window
Clear the o/p before the running
Then clik OK+OK
8] To run the ExtCoff utility choose the "[WINAVR] Make ExtCoff" from the "Tools" menu iam grtting the o/p
**************************************************************************************************************************************************************
> "make.exe" all
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling C: project4.c
avr-gcc -c -mmcu=atmega168 -I. -gdwarf-2 -DF_CPU=8000000UL -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=obj/project4.lst -std=gnu99 -Wundef -MD -MP -MF .dep/project4.o.d project4.c -o obj/project4.o
project4.c:38:2: warning: no newline at end of file
make.exe: *** No rule to make target `obj/main.o', needed by `project4.elf'. Stop.
> Process Exit Code: 2
> Time Taken: 00:01
****************************************************************************************************************************************************************
finally i am getting( .c, .pnproj, .pnps, .lst, .o) files
Here if i got the .cof file i will simulate the code by taking this .cof file in to AVRstudio This is my idea
-> Tell me is this procedure is right/wrong
-> Give me your suggestions to get the .hex file
* If i am using directly AVRstudio I am getting the All the files
Tell me the correct procedure
Thankyou
--
A.Ramesh
[Prev in Thread] | Current Thread | [Next in Thread] |