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.
0
votes
1answer
84 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[] = ...
0
votes
2answers
20 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 ...
1
vote
1answer
421 views
Build arduino with windows command line
Can someone explain, step by step, along with all software I must use for using Windows command prompt to build an Arduino sketch (.ino file )?
I've followed these steps but I can't.
1
vote
1answer
39 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
292 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
23 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
16 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 ...
0
votes
1answer
68 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
1answer
23 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
2answers
302 views
0.96" OLED and Arduino UNO usage error
I have Arduino UNO with 0.96" OLED display with 128(width)*32(height). It is said that I have to edit Adafruit_SSD1306.h for my 128*32 OLED, okey I did it from 128*64 to 128*32 but I still get the ...
0
votes
1answer
29 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
2answers
45 views
Problem using ino build for 8 MHz
I want to use the Ino command line toolkit to build and upload my HEXes and 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
68 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
342 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 ...
4
votes
1answer
235 views
Cannot compile C++11 code via Makefile
I am building my Arduino project with a makefile:
BOARD_TAG = uno
ARDUINO_PORT = /dev/ttyACM0
USER_LIB_PATH = /home/prakhar/dev/alfred/arduino/libraries
CPPFLAGS=-x c++ -std=c++11 -Wall ...
2
votes
2answers
919 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
182 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 ...
0
votes
4answers
2k views
Compiling is slow
Compilation of even the simplest program (like Blink) is extremely slow, the progress bar often hangs halfway for nearly half a minute.
Is this normal? I understand that not all computers are ...
11
votes
4answers
2k views
Why do sketches take up so much space and memory?
When I compile this sketch for the Yún:
int led = 7;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
}
I get:
Sketch uses 5,098 bytes ...
0
votes
1answer
129 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.
/*
...
-3
votes
1answer
178 views
nRF24L01+ Arduino mpu6050 [closed]
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
0
votes
1answer
37 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
449 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
3answers
89 views
Simple compiler design help: Variable length arrays in Arduino?
I'm trying to write a simple compiler in the Arduino language that I am making up for my lab. The compiler will have to be able to turn a string like this:
"do command_one 3 times"
into a data ...
0
votes
1answer
97 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 ...
0
votes
0answers
65 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
0answers
87 views
Problem in Uploading through Visual Studio
It's my simple program program.
int led = 13;
void setup()
{
pinMode(led, OUTPUT);
/* add setup code here */
}
void loop()
{
digitalWrite(led, HIGH);
delay(1000);
...
1
vote
1answer
111 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 ...
0
votes
1answer
51 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 ...
0
votes
0answers
404 views
Arduino Upgrading from 1.0.6 to 1.6, code doesn't work anymore
I'm using arduino UNO, and today I upgraded my IDE from 1.0.6 to 1.6, just to upgrade, nothing special.
I got my libraries again but I got an error with a code that was working ok, the error was:
...
1
vote
1answer
68 views
Add -D option via boards.txt
I'm trying to find a way to set a -D compiler option from within the boards.txt file. Basically set a #define for use in code. There are already some special ones like board.vid but is there a generic ...
2
votes
1answer
113 views
How can I obtain the .hex of a file
I have an Arduino Yún running Openwrt-Yún 1.5.3 (which is the latest version, as I upgraded yesterday), and I am trying to obtain a .hex (compiled sketch), so that I can upload a sketch directly into ...
1
vote
1answer
239 views
error: 'CLASS' does not name a type only when creating object inside another object
I'm trying to use Adafruit's LED Backpack library within a custom class. When I use the Adafruit library directly within a sketch, it compiles fine. When I use an example sketch provided with the ...
0
votes
1answer
153 views
Why doesn't the Micro OLED library compile on my DUE?
I have an Arduino DUE and just got a Micro OLED display from SparkFun.
Using their library, when I try to compile I get the error below. Other example code works just fine and I've programmed this ...
1
vote
3answers
156 views
Can i use arduino code, without using arduino board but just using MCU included
I am developing a product, and to ease my job i am planning to use MCU inside the arduino with the library of Arduino.
Since all the registers are already defined inside the library, and all required ...
3
votes
2answers
116 views
Does the compiler generate intermediate assembler?
My source files are *.ino, but after compilation there aren't any other files placed in the folder. Does the compiler generate intermediate assembler, and if so, where does it leave them? Or is the ...
7
votes
3answers
2k views
Manchester Library Won't Compile for Attiny85
I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to ...
5
votes
1answer
365 views
Setting timer3 in CTC mode - conflict with servo library
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 ...
5
votes
1answer
5k views
Arduino IDE #ifdef
I use my Arduino IDE to either upload my sketch to a Arduino or ATTiny or ATmega328. As you know each device can have a different pinout. Does the Arduino compiler support ifdef, depending on the ...
4
votes
2answers
1k views
Is it possible to run a binary from EEPROM?
Say I wrote a compiled sketch to EEPROM then read it. Could I run the program from EEPROM? I guess the question is: Can an Arduino run software not in flash memory in the middle of executing the ...
1
vote
1answer
2k views
How to compile code for the Arduino Due?
I have set up Eclipse to compile for the Arduino Due using all the tools shipped with the Arduino IDE 1.5.6-r2. It compiles without errors, but when uploaded, the Arduino does nothing, and isn't ...
1
vote
2answers
849 views
Error compiling [duplicate]
I have this code:
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
#include <Wire.h>
#include <Adafruit_MCP23017.h>
#include <Adafruit_RGBLCDShield.h>
#include ...
6
votes
1answer
2k views
Warning Arduino CMakeLists “Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES”
I'm trying to build an Arduino example without using its IDE. My OS is Windows 8.1 and I'm using the last version of CMake (2.8.12.2) and MinGW (GNU Make 3.82.90).
I downloaded the Arduino ...
4
votes
1answer
836 views
Can I compile c/c++ code on the linux part of the Arduino Yun?
Can I compile c/c++ code on the linux part of the Arduino Yun?
How complete is the linux part of the Arduino Yun?
Can I scp some c/c++ code onto the Atheros AR9331 chip compile it?
Or must I first ...
12
votes
2answers
3k views
Why can't I declare a class in another tab in Arduino IDE?
I wanted to move some of my code out into a second tab in the Arduino IDE, to keep things better organised. At first, I only tried moving a function, and it seemed to work fine. I could call the ...
8
votes
1answer
87 views
Is there a preprocessor constant for memory size
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 ...