Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
9 votes
Accepted

Arduino command line vs. Arduino builder

The Arduino IDE command line predates arduino-builder and was made available when the source pre-processing and compiling was implemented by a Java class (deeply) embedded in the IDE. The current IDE ...
user avatar
3 votes

Arduino: command not found

Instructions to installing and binding the Arduino CLI can be found at https://github.com/arduino/arduino-cli#getting-started Once you install the binary, copy the executable into a directory which ...
user avatar
  • 141
3 votes

How to change Arduino Nano MODEL_ID

Finally find the solution =) You don't have to change the ID vendor or ID product: it is possible to attribute a permanent name with devpath (where the device is plugged) The only downside of using ...
user avatar
3 votes

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

In the directory for the new core create a new platform.txt and give the entry for compiler.path the location of the bin/ directory containing the Atmel toolchain. compiler.path=/path/to/bin/
user avatar
2 votes

Connecting via serial with Arduino comand line

If you are using linux, as I guess, you can look at this archwiki page. Even if is a wiki relative to archlinux OS some informations explained are LinuxOS independendent. For your needs, you can use ...
user avatar
2 votes
Accepted

Is there any way to prevent Arduino CLI from closing each time?

Is there any way to prevent Arduino CLI from closing each time? I would suggest working the other way around. Start the Arduino IDE and set external editor in the Preferences (once). Open the ...
user avatar
  • 7,811
2 votes

GPRS SIM900 and GPS NEO-6M don't work together

You are using 2 SoftwareSerial instances and you're losing bytes when you aren't listening to the other port. Also your inetGSM library uses pins 3 for RX with the SIM900 and in your Arduino sketch, ...
user avatar
2 votes

SSD1306 / U8glib display fonts and commands

First, u8glib is superceded by u8g2 Second, the u8glib wiki has a command reference and font reference. As does the u8g2 wiki. Neither reference lists a display() command.
user avatar
  • 6,922
2 votes
Accepted

arduino --verify / --upload not working (command line)

It's quite possible that this "version 2.1" doesn't support command line processes. I've never heard of an Arduino IDE version 2.1. My understanding is the version you get from apt-get install arduino ...
user avatar
  • 3,834
2 votes
Accepted

Capturing avrdude command in IDE

If you run the IDE from a terminal you should get the output to STDOUT in your terminal to do with what you want.
user avatar
  • 101k
2 votes
Accepted

avr-gcc -D is ignored

You are using $(CPPFLAGS) for *.cpp files but only $(CXXFLAGS) are defined. This should be obvious from command line (if you enable showing executed commands for make) And also: CC = using $(CPP) ...
user avatar
  • 4,092
2 votes
Accepted

How to send characters to Arduino serial using Linux command line without tail -f?

Arduinos have auto-reset circuit to reset the board if new connection is initiated on USB. It is good for convenient upload or to reset for debugging at Serial Monitor open. But it causes troubles if ...
user avatar
  • 16.1k
1 vote
Accepted

Can the function be written without ";" in the end?

Do you refer to this block? if (Serial.available()>0) <- here mySerial.write(Serial.read()); if (mySerial.available()>0) <- here Serial.write(mySerial.read()); If so, there is a ; at ...
user avatar
  • 101k
1 vote

Why am I getting a "SendCommand was not declared" Error

Both boolean SendCommand() and boolean echoFind() are defined inside loop(), and they shouldn't be; it is not allowed to define functions inside functions. Take them out of loop() and define them at (...
user avatar
  • 1,575
1 vote

Windows upload from command line gives Access Denied

This is because you are running the Windows App Store version of the IDE. Windows doesn't like you messing with the insides of App Store programs (I think it scares it...). Install the real version of ...
user avatar
  • 101k
1 vote

Building projects on the command line using the Bare-Arduino-Project template

You probably look at the wrong boards.txt: # Trinket 5V Configuration trinket5.name=Adafruit Trinket (ATtiny85 @ 16MHz) this can be found in the boards.txt in the main directory C:\Users\...
user avatar
1 vote
Accepted

How do I upload an Arduino STM32 binary from the Mac command line?

There are several different tools for uploading binaries to a Cortex M3. Depending on the board (not chip) configuration, they include (ht: Majenko): dfu-util through an FT232 adapter stm32flash ...
1 vote
Accepted

How to compile Arduino ESP8266/32 on CI/CD (CLI shell cmd) platform?

Easiest answer: Use PlatformIO. (Yes this answer is technically an advertisement, but it is the correct solution here.). Why not the others? makeEspArduino is dependent on GNU make, hard to make ...
user avatar
1 vote

How do I see the command line equivalent of clicking Verify?

In the Arduino IDE switch on File>Preferences>Upload erbose and Compile Verbose When you build you will see all the compiler commands The verify is often a -v param in the command You will find the ...
user avatar
  • 1,017
1 vote

Compiling sketch vi command line

In the Arduino IDE preferences, select external editor. Then you can write/ edit your sketches with any editor you choose. When you click compile or upload on the IDE toolbar, it will load your ...
user avatar
  • 14.4k
1 vote

Arduino command line vs. Arduino builder

I've written a new option for Arduino CI/unit testing and put together a decent size writeup about it as an answer to this related question. I ended up using the Arduino command line instead of ...
user avatar
  • 181
1 vote

Use command line to upload hex code to teensy.ex

This is starting to drift off topic for this site, but the best solution for making an automated programming utility for the Teensy on Windows, short of writing one yourself, would be to use some kind ...
user avatar
  • 1,089

Only top scored, non community-wiki answers of a minimum length are eligible