Skip to main content

Questions tagged [compile]

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.

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

I'm playing with a tutorial from this DroneBot Workshop YouTube (excellent video presentation by the way on WiFi manager for newbies). I am working with a NodeMCU ESP8266. The example code was written ...
Dave J's user avatar
  • 1
0 votes
1 answer
419 views

It's 32-bit ARM core processor is SAM3X8E ARM Cortex-M3 CPU. Error: sketch_nov16b\sketch_nov16b.ino: In function 'void setup()': sketch_nov16b:49:43: error: 'tone' was not declared in this scope tone(...
JohnB's user avatar
  • 11
2 votes
1 answer
546 views

How to find out all #define used by arduino-cli in compile? I had seen something some time ago, but I cannot find it again. I think that it was some option somewhere, and the result was that the ...
gilhad's user avatar
  • 1,466
4 votes
3 answers
668 views

I'm using a standalone atmega328p with a 16MHz crystal. I'm programming it via avrdude on a raspberry pi, using the SPI and RESET pins. When I compile my program, this is what I see at the end of the ...
php_nub_qq's user avatar
1 vote
0 answers
57 views

I try to upload Adafruit's example sketch (Wemos mini 8266 + Lolin TFT-2.4" touch screen). When complied and uploaded via Arduino IDE v1.8.19, sketch runs OK (including TFT), but when uploading ...
guyd's user avatar
  • 1,049
2 votes
5 answers
433 views

I had a really big .ino file and I decided to break it down into sub-files. So I had the .ino file, the globals.h file and the functions.h file. I moved all the global vars and functions to their ...
user1584421's user avatar
  • 1,435
5 votes
1 answer
1k views

I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code ...
ecjb's user avatar
  • 165
0 votes
1 answer
1k views

I'm getting the following error when I try to compile my code on my LOLIN(WeMos) D1 R1: In file included from C:\Users\Administrator\Documents\Arduino\libraries\WiFiManager/WiFiManager.h:17, ...
T R Y's user avatar
  • 75
4 votes
2 answers
419 views

I'm working on a project with a Digispark ATTiny85, that performs keystrokes using the DigisparkKeyboard library (https://github.com/digistump/DigisparkArduinoIntegration/tree/master/libraries/...
emma.makes's user avatar
0 votes
0 answers
195 views

I have a custom Leonardo board (mega32u4-based) that does not use at all the USB features. When I build my sketch (vscode and platformio) I read: Compiling .pio/build/leonardo/FrameworkArduino/CDC.cpp....
Mark's user avatar
  • 393
2 votes
2 answers
305 views

Being the newbie in the Arduino area... Having more devices, how can I upload some configuration parameters after the code was uploaded? Is it possible? Situation: I have the simple application for ...
pepr's user avatar
  • 147
1 vote
0 answers
154 views

I am trying to get 2 rf24 modules talking to each other. This is my first real arduino project so bear with my ignorance please. I could get them to work with 2 arduino nano but, when trying to ...
Luke's user avatar
  • 11
0 votes
1 answer
3k views

I am a beginner with Arduino. I have a program that is intentionally simple. The code refuses to compile, spitting out the error Compilation error: Error: 13 INTERNAL: exit status 1. I have gotten ...
Jacob Ivanov's user avatar
0 votes
4 answers
1k views

I don't have port, but when I want to compile my code (even empty files), I encounter this error: Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes. Global variables use 9 ...
dorsa's user avatar
  • 9
2 votes
1 answer
221 views

Is there a macro (#define ...) somewhere in the bowels of Arduino IDE or core header files which tells me at compile time(!), if the double data type for a given platform/board is a true double ...
Andy's user avatar
  • 123
1 vote
1 answer
368 views

I am trying to spare a few bytes of program size. I faced a problem which I cannot understand and I hope somebody will help. Look at this empty sketch, pleas. It takes just 444 bytes: void setup() { } ...
zhekaus's user avatar
  • 459
1 vote
0 answers
83 views

I am using Raspberry Pi 4 to connect via usb to program ardino Nano, I intend to communicate with the nano via i2c, but this is irrelivant. With a fresh install of Arduino for ARM 32 bit I get this ...
Arcanist's user avatar
6 votes
3 answers
3k views

I mostly program in C/C++ so I conviniently have a GCC compiler for all my compilations. I was wondering if there is a special compiler for Arduino that can be used just like the GCC Compiler? Because ...
Supragy Mishra's user avatar
1 vote
0 answers
109 views

I'm wondering if it's possible to use GNU (g++) to compile a arduino Sketch. I wanna be able to unit test my code with catch2. g++ -std=c++11 <filename> works well with catch2, but I obviously ...
Nathan Almeida's user avatar
1 vote
0 answers
150 views

I'm trying to use Atom as an IDE for arduino and arduino-based boards. I'm using arduino-cli for compilation and avrdude for upload, and now I'm trying to use linter-gcc for linting. g++ is running ...
Jonathan Musther's user avatar
1 vote
1 answer
89 views

I've been putting a small helper library together which I'm just including manually via the libraries sub-directory. I've just made some changes to the library in the filesystem however when trying to ...
Madden's user avatar
  • 111
1 vote
2 answers
138 views

Let's take a very simple sketch, any simple one-.ino sketch. Say, just a led blinker like this void setup() { pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); } void loop() { ...
AnT stands with Russia's user avatar
0 votes
1 answer
4k views

I have read the answers on this post, but they do not seem to be providing a solution for ESP32 boards. Is there a way to get the .name that is used from the boards.txt without modifying the platform....
CameFromSpace's user avatar
1 vote
2 answers
132 views

I want to compile a sketch on Arduino Uno, while Arduino is running and not connected to anything else, and then run the compiled sketch automatically. Is this feasible? How?
user65440's user avatar
1 vote
0 answers
713 views

I have a wemos d1 mini and a mpu 6060 sensor. I am trying to send the data from the sensor to Firebase. However i have come across a hurdle which i cant seem to solve. This is my error, can you help ...
Hi tE's user avatar
  • 21
1 vote
0 answers
237 views

I was reading the article about tensorflow lite on SAMD51 here and tried it and failed to compile. It was the example from the arduino tensorflow lite lirabry and doesnt seem to compile. Selected ...
Anson He's user avatar
2 votes
0 answers
183 views

I'm having an irritating situation with my Arduino Uno wifi rev2 board. I made an installation with an LCD, keypad and little servo motor. I first wrote the code for my regular Arduino Uno and ...
imkeVr's user avatar
  • 161
1 vote
1 answer
362 views

I need to compile generated source code in js runtime then upload it to my device. Compiling: I have found arduino-cli Uploading: There is only avrgirl but it doesn't work in browser. What should ...
caxapexac's user avatar
  • 111
1 vote
0 answers
1k views

It said it has mutiple libraries were found for "nRF24L01.h" but i check the Ardurino libraries I can only found one. And it work fine if I compile it to Arduino uno. //Include Libraries #include <...
tszkin lee's user avatar
1 vote
0 answers
93 views

I was using the example code of "Blink", and when I try to compile it, it pop out an error as below. I tried to: uninstall and installed back the Arduino IDE installed different versions of Arduino ...
Edward Khor's user avatar
4 votes
2 answers
6k views

How do I use the Arduino IDE to upload the last compiled code? I don't want to have to wait 2 minutes to upload compiled code when there are no changes. It's a big codebase, where I frequently make ...
steve antwan's user avatar
1 vote
1 answer
680 views

Sometime I write Arduino code on a slow Windows laptop that I use for controlling hardware projects and 3D printing. My main Windows computer and also my Linux home server are located somewhere else ...
FarO's user avatar
  • 339
0 votes
1 answer
61 views

I had a recent memory issue where the resolution was to change the Tools > Partition setting. However this setting wasn't available in the Arduino IDE for the boards I was using (Huzzah32 and NodeMCU-...
Rob Sweet's user avatar
0 votes
2 answers
214 views

I'm trying to compile a code to arudino pro micro, I have the right option for compiling like the port and the type of the board,but I get an error,I can't copy
Blake's user avatar
  • 3
0 votes
2 answers
126 views

I use VSCode, not the Arduino IDE. I saw and tried to use a lot of code snippets which are provided for Arduino projects... So when I copy/paste these examples into my VSCode and try to compile it ...
Jan's user avatar
  • 103
1 vote
0 answers
711 views

I'am a NEW-B with an ELEGOO mega 2560 starter kit.The program code came from their disc.The verifying error message for the declaration: RTCDateTime dt; is RTCDateTime' does mot name a type exit ...
Lloyd Henderson's user avatar
0 votes
1 answer
239 views

I'm using Visual Studio Code with the Arduino extension. I have two workspaces each with a different sketch file loaded - Sketch_1 and Sketch_2. Sketch_1 will verify and upload properly. When I click ...
Don's user avatar
  • 1
1 vote
0 answers
93 views

I have two codes for my to sensors and they work separately. However, I need to combine them in one program please can you help? The pulse code /* PulseSensor Starter Project and Signal Tester * ...
Mayada Yusuf's user avatar
1 vote
0 answers
199 views

I installed an Eclipse Version: 2018-12 (4.10.0) for Arduino. I’ve got an CDT Core Builder error when I try to compile. I’ve searched but cannot fix the problem.
IlgarSky's user avatar
1 vote
1 answer
2k views

I just can't wrap my head around on how to properly work with multiple files. My code has been getting quite big so I decided to split all the classes into one file each. So I'm left with 6 files: ...
Cowboy_Patrick's user avatar
1 vote
0 answers
400 views

EDIT: The problem is my op-code catch is op >= 0x20 || op <= 0x2F rather than op >= 0x20 && op <= 0x2F and so most of the switch-case was being optimised away! This is a really ...
Patrick's user avatar
  • 111
5 votes
1 answer
1k views

I want to test the algorithms in my code without needing to send it to an actual Arduino board. I figured I could lay out my project like: project/ core.cpp # core algorithms core.h ...
Kevin Reid's user avatar
0 votes
1 answer
5k views

class A { virtual ~A(); } class B : public A { public: int foo; } void bar(A *foo_){ B* b = dynamic_cast<B*>(foo_); if(b != nullptr){ cout << (*foo_)->...
Bruno Lobo's user avatar
1 vote
2 answers
1k views

Using Raspbian Stretch. I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says Marlin requires C++...
Dmitry Fedorkov's user avatar
2 votes
0 answers
1k views

I have an Arduino IDE 1.8.5 setup (installed from the ZIP file) which I use to work exclusively with a single board. Every time the IDE is restarted, the first compilation takes much longer than ...
Dmitry Grigoryev's user avatar
0 votes
1 answer
375 views

For those who use the IDE Platform IO, I have an issue for you. I use to program a home application of sensor reading and use the library "JC_Button.h" to manage buttons. There are other third-party ...
Bruno Lobo's user avatar
1 vote
1 answer
89 views

I have a sketch containing the following method: // Writes zeros to the complete screen clearing it: void clearScreen(uint8_t val) { setDrawArea(0x00, 0x7f, 0x00, 0x07); // complete screen ...
needfulthing's user avatar
1 vote
1 answer
462 views

So I installed libraries through the Arduino interface (Sketch > Include Library > Manage Library). Then I check: C:\Users\username\OneDrive\Documents\Arduino\Libraries, and I confirm the new ...
vega's user avatar
  • 113
2 votes
0 answers
2k views

tl;dr at the end I was running two DS18B20+PAR temperature sensors without any problems for the last two years on an ESP-01 module running on 3.3V on GPIO 2 using a 4.7K pullup resistor. Now, ...
LeoDJ's user avatar
  • 21
1 vote
1 answer
1k views

Towards developing my own bootloader I've stumbled over an issue with avr-gcc. I am trying to compile my code with the compiler flags -flto #to enable link time optimization -nostartfiles #...
Kwasmich's user avatar
  • 1,533