Skip to main content
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 ...
Matthew's user avatar
  • 151
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 ...
lestage laurent's user avatar
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.
Majenko's user avatar
  • 105k
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) ...
KIIV's user avatar
  • 4,752
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 ...
Mikael Patel's user avatar
  • 7,979
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.
jose can u c's user avatar
  • 6,974
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 ...
per1234's user avatar
  • 4,178
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 ...
Juraj's user avatar
  • 18.1k
2 votes

Arduino Uno Gravitech Rev 3.0 with avrdude CLI (Mac OS) - Is my script correct?

Your first problem is the no-response complaint. You said "I've noticed that the 'Rx' led and the 'L' led blank during the attempts." Is "blank" a typo (i.e., the LEDs do blink?) ...
JRobert's user avatar
  • 15.3k
2 votes
Accepted

What is the difference between ":i" and ":a" in avrdude command?

These are Avrdude file format specifiers. avrdude -C C:\Users\santi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -V -pm32u4 -c avr109 -P COM15 -b 57600 -D ...
6v6gt's user avatar
  • 1,053
2 votes

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 (...
ocrdu's user avatar
  • 1,795
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 ...
Majenko's user avatar
  • 105k
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\...
Codebreaker007's 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

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 ...
Majenko's user avatar
  • 105k
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 ...
Maximilian Gerhardt's 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 ...
Visual Micro's user avatar
  • 1,027
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 ...
JRobert's user avatar
  • 15.3k
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 ...
Ian's user avatar
  • 181

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