So, it is means that i can open C program in AVR Studio(* similiar to using C++ Visual Studio*) to do the following thing ?
test.c ==> test.hex and then burn to MCU
You can but it is not simple to make AVR Studio to interface itself to an external compiler
is it means that i must first change all necessary .c, .h files into .asm file, then to .hex file and burn ??
if so, would you mind tell me how to form .asm file ? is it only one single .asm file ?
Natively, you can only works in assembly language (.asm file) with AVR Studio... But if you interface AVR Studio with an external C compiler, you will then be able to work in both assembly and C code.
So no, you don't have to change any of your files (neither rewrite nor rename them). To work in ASM for AVR, you you take the datashhet as everyone of them has different possiblities but the the same instruction.
it is means :
use WINAVR to change all .c and .h file into a .hex ==>
use AVR Studio to debug the .hex file ==>
the AVR Studio will burn to MCU if success.
if so, any steps need to pay attention. for example, setting, Makefile...e.tc
Indeed
WINAVR is used to computed your sources code files and put them into "binaries".. You could use .hex files (this is a format that the programmers of your MCU will need), you will also be able to generate an .elf file or dwarf file, which are files that are needed to the debugger (AVR Studio).
Those files include the source code links as well as the compiled code itself.
BTW you can see the assmbly language equivalent to your code
After that, you a programmer (AVR Studio or ponyprog or avrdude or another of your own...) and use the .hex file to program it
But don't misunderstand : you don't necessary need to debug you code to program it.. (ie, if it's really simple or you know exactly what you want to do... but it is an advise)
apart from above Question, i find that when i am using WINAVR, i think i need to create a MakeFile.
howerver, i don't know how to handle the Assembler source file.....
For the makefile and other stuff, you should first read the make file, then read some docs about it (explaining makefile is like explain C code, it is complex, so unless you have specific question, I suggest you to start from an example given with WINAVR) and you its makefile to get you code work.
But as far as I remember, examples makefile are well documented to handle all of your files...
Hope this helped[/quote]