Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Quick Arduino Question...

  1. #1
    Join Date
    Mar 2009
    Location
    Seattle Washington
    Posts
    25
    Rep Power
    32

    Quick Arduino Question...

    Hey quick question for all the Arduino / Freeduino / Boarduino users; is the Arduino Software compiler the only C based compiler that the Arduino / Freeduino / Boarduino boards can be programmed with? Thanks
    The sentence below is true.
    The sentence above is false.

  2. #2
    Join Date
    May 2008
    Posts
    2,228
    Images
    155
    Rep Power
    125

    Re: Quick Arduino Question...

    Quote Originally Posted by Azinman View Post
    Hey quick question for all the Arduino / Freeduino / Boarduino users; is the Arduino Software compiler the only C based compiler that the Arduino / Freeduino / Boarduino boards can be programmed with? Thanks
    The arduino software is really just some extra libraries and makefiles for AVR-GCC (plus a GUI/IDE). You could use AVR-GCC outside of the Arduino environment, or even use Arduino makefiles directly without using the java GUI they provide.

    As far as I know, AVR-GCC is the only free C compiler for AVR. Codevision is the major non-free one I know of, but the Arduino libraries wouldn't run on it...

    I guess I'm not entirely sure what your question is, or what answer you were looking for....

    -Fergs

  3. #3
    Join Date
    Mar 2009
    Location
    Seattle Washington
    Posts
    25
    Rep Power
    32

    Re: Quick Arduino Question...

    Thanks for the reply! I was wondering in particular if the Freeduino Board could be programmed using the Code::Blocks C/C++ compiler. Heres a couple links if you need to check it out:
    http://www.codeblocks.org/downloads/5
    http://www.cprogramming.com/code_blocks/
    The sentence below is true.
    The sentence above is false.

  4. #4
    Join Date
    Mar 2009
    Location
    Seattle Washington
    Posts
    25
    Rep Power
    32

    Re: Quick Arduino Question...

    Code::Blocks is a free compiler i found on www.cprogramming.com that compiles C and C++ programs and has an AVR Project option that also asks you to select the processor to run it with. Another link is www.codeblocks.org I am not sure if it will program the Freeduino though so I wanted to know before buying one.
    The sentence below is true.
    The sentence above is false.

  5. #5
    Join Date
    May 2008
    Location
    TN
    Posts
    853
    Images
    99
    Rep Power
    71

    Re: Quick Arduino Question...

    If it will compile for an Atmega168 (or any of the any other Aduino chips) then it should work. You won't be able to use the Normal method of downloading code to the Arduino so you will need a programmer and AVRDude.
    "If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
    -
    Einstein

    Don't be a HelpVampire

  6. #6
    Join Date
    May 2008
    Posts
    2,228
    Images
    155
    Rep Power
    125

    Re: Quick Arduino Question...

    After a quick look, it appears to be using GCC, so it's probably also built on AVR-GCC... as jes said, if you can compile for ATMEGA168 (or some newer boards have the MEGA328), you're set.

    Jes, correct me if I'm wrong, but doesn't arduino just have a stk500 emulation bootloader, and don't they just use AVRDUDE? I think you could probably just download the code using AVRDUDE by itself, no hardware programmer required.

    -Fergs

  7. #7
    Join Date
    Mar 2009
    Location
    Seattle Washington
    Posts
    25
    Rep Power
    32

    Re: Quick Arduino Question...

    Thanks, so the closest thing to AVRdude I found on a quick online search is WinAVR which seems to be a derivative of AVRDude. If you know of anything better please tell me By "programmer" you mean a compiler of sorts like Code::Blocks/AVR-GCC/CodeVision or am I understanding you wrong?
    The sentence below is true.
    The sentence above is false.

  8. #8
    Join Date
    May 2008
    Posts
    2,228
    Images
    155
    Rep Power
    125

    Re: Quick Arduino Question...

    Although I guess I just have to say, why? The arduino environment isn't the greatest thing out there... but it is made specifically for that hardware... lots of libraries ready to go. AVR-GCC, under windows, can be setup using WINAVR, its an all-in-one package.. really easy to get started - and really standard, dozens of people that use it, you can get lots of help from people.

    My guess is that it appears not too many people are using code::blocks for embedded development, so why go the hard way?

    -Fergs

  9. #9
    Join Date
    Mar 2009
    Location
    Seattle Washington
    Posts
    25
    Rep Power
    32

    Re: Quick Arduino Question...

    Okay. Oh btw I'm using the Freeduino from Solarbotics:
    http://www.solarbotics.com/products/28920/
    but there doesn't seem to be any huge differences so I think I'm all set from there. I just downloaded WinAVR so I will check it out...
    The sentence below is true.
    The sentence above is false.

  10. #10
    Join Date
    May 2008
    Posts
    2,228
    Images
    155
    Rep Power
    125

    Re: Quick Arduino Question...

    Quote Originally Posted by Azinman View Post
    Thanks, so the closest thing to AVRdude I found on a quick online search is WinAVR which seems to be a derivative of AVRDude. If you know of anything better please tell me By "programmer" you mean a compiler of sorts like Code::Blocks/AVR-GCC/CodeVision or am I understanding you wrong?
    WinAVR = AVR-GCC (C/C++ compiler) + AVRDUDE (program that downloads code to the chip after compilation) + MAKE (used to put all that stuff together) + PROGRAMMERS NOTEPAD (nice little IDE, with some hotkeys already set up).

    By programmer, he means a phyiscal piece of hardware used to interface between the computer and the chip for the sole purpose of allowing AVRDUDE to copy code onto the chip... but as I followed up, i don't think you need one, since the Freeduino has a bootloader (piece of code that acts like a hardware programmer for itself...)

    -Fergs

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question(s) How to determine speed with arduino
    By ROBOTMAN in forum Software and Programming
    Replies: 27
    Last Post: 02-02-2011, 08:43 PM
  2. Replies: 6
    Last Post: 01-07-2009, 08:10 AM
  3. Project Arduino and RSRs (Really Small Robots)
    By LinuxGuy in forum Rovers
    Replies: 8
    Last Post: 08-12-2008, 03:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •