To compile is to convert the code for a sketch into machine readable files that are uploaded to the Arduino. This tag is mostly used for the space and footprint of the files uploaded to the Arduino.

learn more… | top users | synonyms

1
vote
1answer
35 views

Force compiler to execute instructions sequentially?

Is there a way to force the Arduino compiler to compile individual commands sequentially? Looking at the disassembly, lines of the assembly code for different C/Arduino commands are mixed. I was ...
0
votes
0answers
27 views

Good guides to learn Arduino preferably with C and without IDE

I have played around with Arduino Uno and browsed through some basic introduction guides. I really like that it has been made easy to start programming via IDE and you get the led blinking in no time. ...
1
vote
1answer
29 views

How to use same sketch on two different computers in two different directories

I have the same sketch one that I use at my desk and in the lab, but they are in different directories on the different computers. This means that I have to change the paths to the includes which I ...
1
vote
3answers
54 views

How to include <SPI.h> outside the .ino file

As I understand, Arduino IDE considers two paths for the libraries: first, "C:\Program Files\Arduino\libraries" and second, the "libraries" folder next to the schetchbook. I have a ...
0
votes
1answer
18 views

Compile Error for Arduino Mega

I am using the Arduino IDE 1.6.0, There is a project that has compiled both for Due and MEGA on another computer. But On my machine, it only compiles only for Due. When Compiling for "MEGA or MEGA ...
1
vote
2answers
29 views

Linker error when trying to use functions in separate header and source files

It is my first day of working with Arduino (it is a Due). I want to read from TMP102 through I2C. I wrote some code and it works just fine. But now I want to separate the TMP102 code from the main ...
0
votes
2answers
103 views

How to compile an official VS1003 / VS1053 example for Arduino / ESP8266?

Have anyone ever successfully run any of the official playback and recording examples for VS1003 or VS1053 on Arduino / ESP8266? I mean, I was able to play sound with VS1003, but I just can't make the ...
0
votes
0answers
23 views

Edited library .cpp isn't changing / compiling

I've made some minor changes to a library (just the .cpp, not .h), and the changes aren't taking effect when compiling. Even outlandish errors have no effect. I've tried in VS2015 (my normal ...
0
votes
2answers
72 views

Error on Arduino Code (unknown type name 'LiquidCrystal')

I am using Arduino IDE 1.6.8 and I am trying to compile the following code Wheatstone Bridge. I have currently a really weird error: unknown type name 'LiquidCrystal' This error seems to come from ...
-2
votes
1answer
29 views

Compilation fails with non-explicit error message

I have written the following code for a project comprising an ultrasonic distance sensor, a buzzer and a few buttons. When the distance is less than 60 cm, the buzzer rings and stops only when ...
0
votes
1answer
26 views

Unidentified constant value

im working on the following project kalman filter and im working to implement in arduino.. i read the entire code and i succesfully implemented it into arduino but i couldnt implement the following ...
0
votes
1answer
140 views

“missing filename” compilation Error

I've recently got back to my Uno. I tried compiling my program and got the following error: Arduino: 1.6.6 (Windows 8.1), Board: "Arduino/Genuino Uno" avr-g++: error: missing filename after '-o' ...
0
votes
2answers
181 views

Will a .ino Arduino Sketch compile directly on GCC-AVR?

Okay, we all have seen those questions all over the web such as Arduino v.s. C++, or other similar questions. And a vast majority of the answers do not even touch compilation differences other than ...
1
vote
1answer
43 views

help compiling code for flora project

I'm working on the Adafruit Firewalker shoes. I can't make my code compile to test my flora project. This is my error message: Arduino: 1.6.7 (Windows 10), Board: "Adafruit Flora" C:\Users\Devi\...
3
votes
2answers
107 views

Is there a way to upload precompiled code to an arduino?

My company is developing a programmable remote control car which is driven by an Arduino Nano. We would like a way for the user to install software updates to the arduino, but we don't want to give ...
-1
votes
1answer
92 views

compilation error in arduino

I'm new to arduino. I had found an interesting project to work on with, but unfortunately I'm held up at compilation error. I tried finding answers to this problem but not able to understand. Here is ...
0
votes
2answers
45 views

Using Arduino IDE as an API

I have a project where it would make a lot of sense to generate Arduino compatible source code, compile it and flash it based on some settings in the project software. Is there any way to do this ...
1
vote
1answer
43 views

Defining object

I am trying to hide libraries behind another, for simplicity. But I can't deal with the objects required by the libraries. Basically I want to use the objects both in my .cpp and .ino file, but I am ...
-1
votes
2answers
200 views

SPISettings was not declared in this scope

I'm trying to compile a simple I2C example to read data from an MPU-6050 accel/gyro sensor, but I'm getting the compilation error: /usr/share/arduino/libraries/SD/src/utility/Sd2Card.cpp:27:8: error: ...
1
vote
1answer
366 views

Error compiling Arduino

I've just installed the last version of Arduino 1.6.7 plug my Arduino SmartEverything (http://www.smarteverything.it/) to OS X 10.11.2, try to compile this project: https://github.com/nicolsc/sigfox-...
0
votes
1answer
73 views

Trying to understand compilation error message

C:\Users\Field\Documents\Arduino\Adafruit_TCS34725-master\examples\tcs34725autorange\tcs34725autorange.ino:2:31: fatal error: Adafruit_TCS34725.h: No such file or directory #include "...
1
vote
1answer
109 views

Compilation error using arduino-mk on arch Linux (undefined reference to __dso_handle)

I'm compiling a simple sketch that reads values from an analog input and activates a buzzer on a digital input. working on an Arduino uno. the sketch compiles and runs fine on windows and arch linux ...
3
votes
3answers
93 views

UART error can not compile on Arduino Yun (ATmega32u4)

This code is used for communication between the Glediator interface and a NeoPixel Matrix, but I receive an error saying 'UCSR0A' is not defined within the scope. UCSR0A |= (1<<U2X0); ...
2
votes
1answer
206 views

Cannot find crtatmega328p

I have just installed the arduino IDE on my gentoo laptop. I then installed the toolchain with the following command: crossdev -s4 avr This does a stage 4 install of the toolchain, with all its ...
1
vote
1answer
51 views

How can I make Arduino IDE use Atmel's provided toolchain? (Linux/Ubuntu)

I have an Arduino based board using ATmega168PB, but so far only Atmel's provided toolchain supports this microcontroller. I can download the toolchain from Atmel's website, but I am not sure how to ...
0
votes
2answers
57 views

How to prevent inclusion of unnecessary libraries?

How do you save space by preventing the inclusion of unnecessary binaries? When I compiled the ROS Blink example, I received the warning: Global variables use 1,951 bytes (76%) of dynamic memory, ...
1
vote
0answers
55 views

Arduino IDE Visual Studio and compile problems blank project .ino hack

I'm new to Arduino and have little programming experience apart from my computer science degree. I used C++ for some projects in my degree but am barely proficient. My first project is relatively ...
1
vote
2answers
118 views

Any way to include the text of a file inside a sketch, to make it shorter and neater?

I'm wondering if there is any way to include the text of a file into a sketch by using a single placeholder command, similar to the "#Include" command when using Server Side Includes on .shtml files. ...
2
votes
5answers
3k views

Weird problem with LCD 16*02 I2C shield

I have an I2C LCD screen provided with a Sunfounder kit and certainly built by DFRobot or such a constructor (there is nothing written on the LCD), and an Arduino Uno R3 copy. My issue is when I use ...
0
votes
2answers
283 views

Formatting and code errors?

Hello I have managed to get both the Adafruit Datalogging shield walk-through and this individual code working http://www.learn.parallax.com/reed-switch-arduino-demo separately, but trying to combine ...
0
votes
1answer
71 views

Can anyone explain how this code can be converted to work on a Arduino Uno [closed]

I was hoping someone could help, im totally new to this. I wish to use this code for a Raspberry Pi on an Arduino Uno with the Adafruit SD data logging shield. It is for recording reed switch closures ...
0
votes
0answers
12 views

Only compiling, becouse other programmer

I have a Evaluationsboard v2.01 and a noname programmer. I want to use Arduino Software only compiling and other software to flash the hex. My programmer has a USB and no COM. How i can compile for ...
0
votes
1answer
39 views

Compilling error not highlighting line in code

A newbe here. How come when I compile with an error I do not get the line or line number highlighted? I Get the errors just can't find where they are.
0
votes
1answer
113 views

Can Arduino libraries be compiled for ARM MCU's?

I am looking for a very low power Micro-controller to interface with the RockBlock Iridium modem. The MCU I am thinking of purchasing is the Gecko Zero by Silicon Labs. I want to know if it is ...
2
votes
3answers
544 views

How to compile, upload and monitor via the Linux command line?

Interfacing an Arduino Uno (uploading etc.) with the Arduino IDE (using the Fedora package) works fine under Fedora 21. But I rather want to use vim + make + vim-quickfix-mode etc. How can I do that?...
0
votes
1answer
422 views

undefined reference to `PPMintIn::PPMintIn(int)'

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 ...
0
votes
1answer
85 views

Arduino Servo.h library returns error in compilation

I have a problem with Servo library. This is my (very short XD) "code": #include <Servo.h> void setup() { Servo.attach(9, 554, 2400); } void loop() { Servo.write(2000); } And it returns:...
1
vote
1answer
37 views

arduino boards manager configuration

I installed the Arduino IDE 1.6.4, and used the "boards manager" to install the package for Arduino Due. I am using c++11 in my project so i need to add the compiler.cpp.extra_flags=-std=gnu++11 like ...
0
votes
1answer
53 views

How do I compile the Marlin firmware?

I have a folder of mostly .h and .cpp files for the Marlin firmware (3D Printing) from here. How do I compile that so I can upload it to my Arduino Mega with Ramps?
0
votes
3answers
506 views

Adafruit DHT22 Library + Arduino Due not compiling?

i recently purchased a DHT22's and tried to get it to work using Adafruit's DHT library on Github. When i compile it with a Arduino DUE, it gives me the following error: C:\Users\Moz\Documents\...
4
votes
1answer
371 views

Why does this code execute?

After experiencing failures of my Arduino projects due to low memory, I decided to do some research into it so I could understand better where the problems were. I eventually came to this code: void ...
0
votes
1answer
5k views

avrdude : stk500_get sync<> attempt 10 of 10 not in sync : resp=0x20 how do i get pass this error for ardunio uno board [duplicate]

When I first started with a bare minimum code. The compiler compiles the code, but when I try to upload, this is the error message I get: AVRDUDE: STK500_GETSYNC<> ATTEMPT 10 OF 10 NOT IN SYNC ...
-1
votes
1answer
490 views

Error compiling code (tv-b gone)

I have been getting started with the arduino and found a great project online called tv-b gone. It includes some code which I cannot compile. Yes I have included main.h and worldcodes.cpp. /* TV-B-...
0
votes
1answer
67 views

Arduino Yun doesn't link any library

I'm writing code for a project with Arduino Yun. My project is quite simple: it takes a picture with a webcam and saves it in a PNG or JPEG file format. I've already installed the uvc driver for ...
4
votes
1answer
3k views

Basic makefile for avr-gcc

I would like to make a makefile for compiling c programs for the arduino. I am somewhat familiar with make but have never used it with avr-gcc. What is the simplest way I could put the commands below ...
0
votes
2answers
76 views

Problem using Ino build for 8 MHz

I want to use the Ino command line toolkit to build and upload my HEXes. It works well for the regular Arduino, however when I try to upload code to a Mini Pro 3.3V at 8 MHz, the code has the timing ...
0
votes
1answer
102 views

This specific code just refuses to compile?

I've been working on some software to do REALLY basic composition of music. Here's my code so far: #include "notes_sharps.h" int notes[] = {NOTE_B0,NOTE_C1,NOTE_D1,NOTE_E1,NOTE_F1,NOTE_G1,NOTE_A1,...
-5
votes
1answer
285 views

nRF24L01+ Arduino mpu6050 [closed]

How do I ever understand what the Arduino IDE means when they advise you of any errors? The reason I ask is because I got several errors that don't make sense to me as I see what the error means and ...
0
votes
2answers
2k views

WebCam Face detection and tracking tutorial with Arduino Uno R3 and OpenCV 3.0 RC1 in Ubuntu 14.04

I try to make this Arduino Open CV tutorial for webcams. OpenCV 3.0 RC1 is compiled and installed. I also use Code::Blocks 13.12 as IDE. I am a newbie what comes to OpenCV and I do not know too much ...
0
votes
1answer
199 views

“variable must be const” fix for Arduino progrem

I am trying to upload to my nano the code attached. It is giving me an error saying variable must be const about something I am trying to put in progrem. I learned that installing a older version of ...