Skip to main content

Questions tagged [avr-gcc]

AVR-GCC is a compiler that takes C language high level code and creates a binary source which can be uploaded into an AVR micro controller.

Filter by
Sorted by
Tagged with
0 votes
1 answer
293 views

I need to hook up Bluefruit LE Breakout (nRF8001-based) to ATMega328 chip (to use it as wireless UART), and it seems like the library provided is for Arduino. What I have is just bare ATMega328 (note ...
Roman Susi's user avatar
2 votes
1 answer
1k views

I'm trying to run a simple Hello World program from Arduino 1.6.5 from terminal. When I run it in Arduino IDE, it works good. When I'm trying to get it by avr-g++ I have hard way to figure out how to ...
Cheshire Cat's user avatar
1 vote
1 answer
2k views

I am making a new library that will utilize PinChangeInt's library. My intention is to further simplify repetitive code by creating a library. (This is to allow for multiple PPM channels without ...
tisaconundrum's user avatar
1 vote
2 answers
490 views

So I'm taking a class where the project is to create a new embedded language. We are using OCaml for the compiler, so I was looking for a way to interface with AVR or its C library in such a way as I ...
fubuloubu's user avatar
2 votes
2 answers
917 views

I'd like to write a function like this: void lcdPositionPrint(int row, int col, content) { lcdPosition(row, col); LCD.print(content); } but I'm not certain how to declare "content", because ...
John's user avatar
  • 123
0 votes
1 answer
9k views

Is there a compiler that I can use to run C on an arduino or any other way so that I can upload C programs to my arduino?
Benichiwa's user avatar
1 vote
2 answers
636 views

I have an Arduino Uno board. I have seen how it is possible to program external AVR's through the Arduino Uno board, for instance an ATtiny. But I'm starting with c for atmel µc and I just want to ...
Ognan's user avatar
  • 13
3 votes
1 answer
2k views

I think the arduino board is awesome. Though I'm not interested in the library and IDE at all... Is there a way, to use an AVR 328p, as you normally would, on an arduino board? I like how arduino's ...
aaa's user avatar
  • 2,715
2 votes
0 answers
1k views

So I will admit that I am a noob to Arduino. I have some experience programming microcontrollers, and that was back in the day (about 4 years ago - such as the Freescale 68HC12) so up until this point ...
JoshRyan's user avatar
0 votes
1 answer
819 views

I am attempting to program my arduino in plain C, and I've come across some very strange behavior. If I load the following code from the Arduino IDE, it works as expected and toggles Pin 6 every 100ms....
cheshircat's user avatar
6 votes
1 answer
3k views

On an embedded system we use global variables often to keep dynamic memory consumption on heap and stack low. But global variables are also considered bad programming practice if they aren't used in a ...
Ariser's user avatar
  • 577
10 votes
1 answer
4k views

I would like to set up a timer in order to call a function 800 times per second. I'm using the Arduino Mega and Timer3 with a prescaler of 1024. To choose the prescaler factor I've considered the ...
UserK's user avatar
  • 559
4 votes
1 answer
10k views

As stated in www.Arduino.cc FAQ, "Can I use an Arduino board without the Arduino software? Sure. It's just an AVR development board, you can use straight AVR C or C++ (with avr-gcc and avrdude or AVR ...
EEd's user avatar
  • 904
9 votes
3 answers
3k views

I'd like to write my sketches so that I can either build/upload them using the Arduino IDE, or optionally using GCC and a makefile. I know about including the function declarations at the top, but is ...
Alex Shroyer's user avatar
11 votes
2 answers
2k views

I have started to play with and arduino UNO quite recently (without any prior experience with micro-controllers). I would like to use emacs instead of the IDE, and I'd also like to know what the IDE ...
Ash's user avatar
  • 225
1 vote
2 answers
4k views

I've traditionally used a text editor with avr-gcc and makefiles for working with Arduino boards. I'm now trying to develop projects for the wider Arduino user-base, so I am trying to use the Arduino ...
Cybergibbons's user avatar
  • 5,430
21 votes
2 answers
13k views

When you're writing a typical sketch, you usually rely on loop() being called repeatedly for as long as the Arduino is running. Moving in and out of the loop() function must introduce a small overhead ...
Peter Bloomfield's user avatar
15 votes
1 answer
386 views

I would like my compiles to exclude some code depending upon the flash/program space available. To be used in the demo code of a library I support. Whereas my current solution is to use a #ifdef of ...
mpflaga's user avatar
  • 2,523