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.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
848 views

Prevent Arduino IDE from rebuilding the core library after every restart

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
2 votes
0 answers
2k views

ESP8266 can't read parasitic DS18B20 temperature (reset during conversion, 85°C)

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
2 votes
0 answers
169 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 ...
Kahurangikea's user avatar
2 votes
0 answers
450 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?
Alex Antonov's user avatar
2 votes
0 answers
386 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, LOW)...
Shiran Abbasi's user avatar
1 vote
0 answers
31 views

Sketch does not run right when uploaded via Arduino IDE vs PlatfomIO

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
1 vote
0 answers
120 views

Error compiling arduino sketch to seeduino xiao for RF24 Module

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
1 vote
0 answers
59 views

Fresh install getting Assembler Error

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
1 vote
0 answers
88 views

How to compile Arduino Framework with GNU

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
94 views

Trying to show g++ (linter-gcc for Atom) where to find Arduino libs

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
0 answers
647 views

Error compile board LOLIN(WEMOS) D1 R2 & mini

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
221 views

Compile error with Arduino tensorflow lite library

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
1 vote
0 answers
848 views

Having problems compiling this code for NRF24l01 on stm8s103f3p6

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
82 views

Error Compiling any coding in Arduino IDE

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
1 vote
0 answers
637 views

code error- Real Time Clock program-DS3231 RTC module

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
1 vote
0 answers
65 views

Combining sketches

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
172 views

Eclipse "CDT Core Builder" error

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
0 answers
326 views

Why does the program size increase so drastically with these switch-cases?

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
0 votes
0 answers
150 views

Disable USB support for mega32u4

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
1 answer
102 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 ...
Rohan Gautam's user avatar