Using Arduino 2560 board with only my C-language code and arduino boot

I would like to use the Arduino IDE just to load my own C-language programs, manually initiallizing all ports and registers, etc. but using the ARM Studio IDE ver 5 and/or Arduino IDE to compile/download a c program to the Arduino 2560 board ready to run. (somebody must be doing this!)

Hi,

I would start by looking at how people are integrating code written in C and C++ into libraries: http://www.arduino.cc/playground/Code/Library Alexander knows LOTS more than I about this ....

Also another Library tutorial: http://www.arduino.cc/en/Hacking/LibraryTutorial

Regards, Terry King ...Not Yet Pro :)

[quote author=Terry King link=topic=62882.msg456309#msg456309 date=1307021475] Hi,

I would start by looking at how people are integrating code written in C and C++ into libraries: http://www.arduino.cc/playground/Code/Library Alexander knows LOTS more than I about this ....

...but those libraries have code that gets linked by the AVR stuff inside the Arduino IDE setup...

Also another Library tutorial: http://www.arduino.cc/en/Hacking/LibraryTutorial

Regards, Terry King ...Not Yet Pro :) [/quote]

GeniusPro: I would like to use the Arduino IDE just to load my own C-language programs, manually initiallizing all ports and registers, etc. but using the ARM Studio IDE ver 5 and/or Arduino IDE to compile/download a c program to the Arduino 2560 board ready to run. (somebody must be doing this!)

In your Arduino sketch you are free to manipulate the AVR registers and ports directly. You are not required to use any of the Arduino functions if you want to write everything yourself or use the AVR-C library functions. Put everything you would normally put in main() into setup() and create an empty function "void loop(){}" and the Arduino IDE will be happy to compile, link and upload your program.