News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Winavr with codeblocks only compiles .sys file

Started by Bigal, November 23, 2009, 09:16:48 PM

Previous topic - Next topic

Bigal

Hi I really like codeblocks and use SDCC with PIC very successfully.
Now working with ATtiny13 etc and after looking at AtmelStudio (which works well with WinAVR) would prefer codeblocks.
O/S is WinXP, Codeblocks 8.02, WinAVR with paths defined in CB (not BIN path).
Unfortunately, there is no way I can compile successfully, despite going through all the solutions offered in this forum.
I am guessing that option: Makefile/This is a custom makefile [checked] is not needed, as others do not report having to do this. However, when doing this option, I get a compile error:

make.exe: Makefile: No such file or directory
make.exe: *** No rule to make target `Makefile'.  Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings

without this option I get a supposed successful compile:
-------------- Build: Release in asmdemo ---------------

Compiling: asmdemo.c
Linking native: bin\Release\asmdemo.sys
Output size is 2.45 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
But output is only asmdemo.sys with no hex or asm file.

Compiler flags are set for Attiny/GNU AVR GCC Compiler, search directories are set up.

Have spent literally hours trying to get this to work :-(
Any advice gratefully received.
Al.


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

You can find a startpoint here : http://forums.next.codeblocks.org/index.php/topic,10734.0.html at least for the hex-files (for the assembler files, reading the documentation of winavr or objdump might help).