Thanks for quick response Lieven. I followed the steps you wrote, but i had some problems as I am using '
makefile'. It is almost inevitable by Avr-Gcc because Microcontrollers have many parameters, like type, clock frequency, etc. and
makefiles make life a lot easier.
Good news: Code::Blocks *NIGHTLY BUILD* worked with makefiles smoothly. Here's how:
* Make a copy of GCC and rename it as Avr-Gcc and set it as default
* Compilers installation directory: c:\winavr
* change mingw32-gcc.exe to avr-gcc.exe
* change mingw32-c++.exe to avr-c++.exe
* change mingw32-g++.exe to avr-g++.exe
* change ar.exe to avr-ar.exe
* change gdb.exe to avr-gdb.exe
* leave windres.exe
now as the make.exe select the
make.exe under
c:\winavr\util\bin directory Create a new empty project, add the attached
main.c and
makefile, this is a simple flashing Led Demo. The makefile is a general purpose make file, it compiles the project for Atmega32 @ 16Mhz. User might change it freely, quite flexible.
Now, in project properties select the option
'This is a custom make file'.
Move to targets tab, rename the target 'default' as 'main'. (* if this tab is deactivated, click ok, exit and come back - a simple refresh bug-
)
Enter "
build options" of this target. Move to "
Make Commands" tab.
Build Project / Target shoul be :
$make -f $makefile allClean Project / Target should be :
$make -f $makefile cleanAnd, we have a nice IDE for Avr-Gcc, Avrfreaks will love this
---------------------------------------------------------------------------------------
Ok, I am not a Linux guy, above solution is only a temporary one until you add Avr-Gcc as built-in compiler.. :lol:
Cheers,
Cem
[attachment deleted by admin]