Is the main way of programming the Arduino's Atmel MCU thru a Visual Programming environment such as Max/MSP? Or do you have to write typical C code?
What are the different ways available?
6 Answers 6
The main way of programming the atmel chips is using avrstudio a windows IDE or avr-gcc. In C or assembly.
The arduino simplifies this to use a simple variation of c++ in its own simple IDE. There is no visual programming method for arduino/avrs as far as I know.
-
\$\begingroup\$ There is visual programming, modk.it \$\endgroup\$Toby Jaffey– Toby Jaffey2010年07月19日 22:15:21 +00:00Commented Jul 19, 2010 at 22:15
I program the Arduinos and Atmel chips a couple of different ways --
The quickest and easiest way is to use a uC with the Arduino bootloader and use the Arduino IDE and libraries. Quick and easy but can can be lower performance depending on your task.
You can use the Arduino bootloader and libraries from AVR studio or the command line. I find the command line a lot quicker than the Arduino IDE. Haven't played with AVR studio. When I develop Arduino libraries I usually use this method.
Program the uC using just AVR studio or from the command line. No Arduino bootloader or libraries. Porting the Atmel application code is easy. This is my preferred method. C from the command-line using Make. EMACS for editing files.
-
3\$\begingroup\$ s/EMACS/vi/ :) \$\endgroup\$Earlz– Earlz2010年04月18日 07:41:43 +00:00Commented Apr 18, 2010 at 7:41
I use Eclipse as my main IDE for my Arduino projects and write C/C++. I wrote a tutorial on how to set up Eclipse with Arduino that you might find interesting.
Here's a good tutorial for programming the AVR ATMega chips in C, without the Arduino IDE.
There is a visual studio addin in beta at the moment. its free, if you want to be part of the beta then you just need to email beta @ visualmicro.com or take a look at http://www.visualmicro.com
The arduino addin for visual studio provides intellisense and allows you to select arduino boards, libraries. it also supports compile and upload from visual studio directly to the arduino
For avr I normally program in assembler using a text editor. use avra or something like it to assemble and have my own simplified loader to load the programs into the device (command line).
-
\$\begingroup\$ Props for coding in assembler. Nonetheless, I wouldn't recommend it for a beginner. Also, if you're trying to code in assembler so your code will fit on the Arduino, then you must be developing some HUGE apps. I use C 99% of the time, and check/tweak the bottlenecks and ISRs in assembler. \$\endgroup\$Kevin Vermeer– Kevin Vermeer2010年07月19日 23:59:58 +00:00Commented Jul 19, 2010 at 23:59
-
\$\begingroup\$ No, you are right, no huge apps. It is just not as compiler friendly of an instruction set compared to others like msp430 and arm. I think my main problem is although there is an avr gcc, it is not as trivial to build as the arm or msp430 or some others and I would rather spend time fiddling with the chip than the tools. This is definitely not the first assembler you want to learn. The poster was asking for a how do you do it, what are the options, so I mentioned mine since it is off the beaten path, something different than what most are going to use. \$\endgroup\$old_timer– old_timer2010年07月20日 00:39:34 +00:00Commented Jul 20, 2010 at 0:39