Author Topic: Winavr with codeblocks only compiles .sys file  (Read 4049 times)

Bigal

  • Guest
Winavr with codeblocks only compiles .sys file
« on: November 23, 2009, 09:16:48 pm »
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.

« Last Edit: November 23, 2009, 09:21:31 pm by Bigal »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7598
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Winavr with codeblocks only compiles .sys file
« Reply #2 on: November 24, 2009, 06:54:35 am »
You can find a startpoint here : http://forums.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).