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?

Velvet
4,9085 gold badges18 silver badges32 bronze badges
asked Mar 2, 2010 at 16:33
\$\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.

answered Mar 2, 2010 at 16:44
\$\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.

Daniel Grillo
7,71718 gold badges54 silver badges70 bronze badges
answered Mar 3, 2010 at 0:52
\$\endgroup\$
1
  • 3
    \$\begingroup\$ s/EMACS/vi/ :) \$\endgroup\$ 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.

answered Mar 17, 2010 at 16:39
\$\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/

answered Mar 2, 2010 at 17:02
\$\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

answered Apr 15, 2010 at 23:55
\$\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

answered Jul 19, 2010 at 22:10
\$\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\$ Commented Jul 20, 2010 at 0:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.