2
\$\begingroup\$

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?

\$\endgroup\$

6 Answers 6

13
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ There is visual programming, modk.it \$\endgroup\$ Commented Jul 19, 2010 at 22:15
7
\$\begingroup\$

I program the Arduinos and Atmel chips a couple of different ways --

  1. 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.

  2. 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.

  3. 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.

\$\endgroup\$
1
  • 3
    \$\begingroup\$ s/EMACS/vi/ :) \$\endgroup\$
    – Earlz
    Commented Apr 18, 2010 at 7:41
4
\$\begingroup\$

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.

\$\endgroup\$
2
\$\begingroup\$

Here's a good tutorial for programming the AVR ATMega chips in C, without the Arduino IDE.

https://www.mainframe.cx/~ckuethe/avr-c-tutorial/

\$\endgroup\$
1
\$\begingroup\$

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

\$\endgroup\$
1
\$\begingroup\$

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).

http://www.dwelch.com/arduino

\$\endgroup\$
2
  • \$\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\$ Commented 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
    Commented Jul 20, 2010 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.