The program I am trying to compile for my arduino micro does not compile in the 'standard' arduino IDE. The reason is subject to a completely different topic discussed in an other topic. Cut a long story short, I write pure C and the arduino GUI only does C++. Trust me, I have tried to tweak the interface so it would use avr-gcc, but you enter in an infinite compile - error - refactor loop. I need an other solution.
I am using code::blocks as IDE and want to flash the avr-gcc compiled code onto the arduino micro board using avr-dude on linux kubuntu machine. The flash part is easy, cause you just verbose the output and copy paste.
however, I just can't seem to use code::blocks to compile and link the blink sketch. Would you have any further documentation on how to achieve this.
Problem is I have been running in circles for quite some time now trying to find the correct command line arguments or code:blocks post compiler settings. All information out there is either very old or irrelevant.
Open a new file in the IDE, open a new tab in that file. Name the tab file WhateverYouWant.c, place all your C code in the new tab. The ino file should be blank. Compile.
I just have so much mileage in code::blocks, I would really like to keep using this IDE. So I really need the compiler and linker settings for code:blocks to generate hex file to flash onto arduino
plus: the fact you need to use a hack to compile basic ANSI C is by itself proof arduino IDE is, mmmmmh ...