Hi,
I use C::B for programming Arduino.
I don’t do classical building and compilation with makefile but I use „arduino-builder.exe“ with help of C::B environment and custom variables. (Another next options are needed to set probably.)
So the “Build” consists of:
- I call two Pre-build steps with arduino-builder.exe (as Arduino IDE calls)
- I don’t do any main compilation (only set of dummy target and dummy compilator is needed) and then
- I call Post-build step with avr-size for information about memories only.
For uploading I call separate tool+ with avrdude.
As a serial monitor I use another SW called from C::B as a tool+ again.
Change of Arduino version is then almost easy: Only to store new „arduino-1.x.y“ directory inside C::B directory and to change environment variable with correct version.
As a start I use adapted template from oBFusCATed. I have only Mega2560 and Arduino pro Mini 328 in the template. I tried to put the most of variables inside the template and it works somehow. Unfortunately it is more than year ago so I forgot how I did it
(The script language is not easy for me.)
But it can help you maybe.
oBFusCATed:
Sorry, your template maybe worked well but something wasn’t good for me probably (maybe the updating of version). So I adapted it for working with arduino builder. I know this solution is not perfect (for example parsing of warnings and errors moves me to the temporary file in the temporary sketch folder instead of in the project files) but it works somehow.