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

0
votes
0answers
20 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
40 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
24 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
25 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
86 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
109 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
37 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" ...
3
votes
2answers
72 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
66 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
37 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
34 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
144 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
259 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: ...
0
votes
1answer
60 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 ...
0
votes
1answer
84 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
65 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
187 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
44 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
55 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
46 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
101 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
2k 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
237 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
68 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
37 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
103 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 ...
1
vote
2answers
292 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 ...
0
votes
1answer
312 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
76 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 ...
1
vote
1answer
35 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
49 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
442 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: ...
4
votes
1answer
359 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 ...
1
vote
1answer
124 views

IDE not acknowldeging “freeduino” port

I have a freeduino and am trying to upload sketches to it. But the COM port is not listed in the arduino IDE. I've installed drivers and the rest but still the problem persists. An error code (code ...
0
votes
1answer
4k 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
436 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. /* ...
0
votes
1answer
65 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
2k 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
75 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
99 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[] = ...
-5
votes
1answer
269 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
1k 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
176 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 ...
1
vote
0answers
109 views

Obfuscate .hex file

I've wrote a code for arduino mega, and want to force it from copying (this is commerce project). How can I obfuscate .hex file before uploading to arduino?
0
votes
1answer
142 views

How to compile and upload the specific (.cpp + .h) code?

I have a specific arduino code (no .ino files) https://github.com/justintconroy/MdbBillValidator , which can't be opened by arduino IDE. How can I make & upload this code? I have an arduino 2560 ...
1
vote
0answers
184 views

Problem in Uploading through Visual Studio

This is my simple program: int led = 13; void setup() { pinMode(led, OUTPUT); /* add setup code here */ } void loop() { digitalWrite(led, HIGH); delay(1000); digitalWrite(led, ...
1
vote
1answer
211 views

Bizarre compilation problem — only compiles with the addition of a single Serial.println() line?

I have a SwitchDoc Labs DS3231 Real Time Clock Module that I am using with an Arduino Mega. It's connected to 3.3V and the SDA(20)/SDL(21) pins. I'm also using SwitchDoc's RTC_SDL_DS3231_ARDUINO ...
2
votes
4answers
3k views

How to add hysteresis to threshold values?

This code compares the analog input value against two thresholds, having three voltage regions. Then it will turn on an LED according to what region the read voltage is in. The problem is that when ...
0
votes
1answer
57 views

How do you call a class method with named parameters?

I have a C++ class constructor like: Motors(int p1=0, int p2=0); However, when I attempt to instantiate it with named parameters like: Motors motors(p1=123, p2=456); the Arduino C/C++ compiler ...