Questions tagged [command-line]

A command line is a string given to a command interpreter that tells it actions to take, such as running programs or copying files. The interpreter processes command lines with escapes and substitutions.

Filter by
Sorted by
Tagged with
3 votes
1 answer
95 views

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

I am dealing with an Arduino Nano board rev 3.0 from Gravitech. There is a program inside that I'd like to download to a HEX file. Thus I can upload it to other Arduino Nano boards. I'm a newbie with ...
DavidM31's user avatar
-1 votes
1 answer
91 views

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

What is the difference between :i and :a after my hex file path in avrdude command. avrdude -C C:\Users\santi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v ...
santiago's user avatar
0 votes
1 answer
770 views

Why am I getting a "SendCommand was not declared" error?

#include <Adafruit_Fingerprint.h> #include <SoftwareSerial.h> #include <LiquidCrystal.h> uint8_t id; int getFingerprintIDez(); //pin #16 is IN from sensor (GREEN wire) //pin #15 is ...
SASHA SYAZANA 's user avatar
0 votes
1 answer
351 views

Windows upload from command line gives Access Denied

saw somewhere that in order to upload a hex file to an arduino you can look at the Arduino IDE - see the command it runs, then replace the hex file with your file. this is the command I see in the ...
FoosMaster's user avatar
1 vote
0 answers
264 views

Program is executing but AT commands not showing in serial monitor

My purpose was to send SMS using GSM SIM800L coreboard and Arduino UNO. Here is the code #include <SoftwareSerial.h> //Create a software serial object to communicate with SIM800L ...
Udara Sampath's user avatar
0 votes
1 answer
48 views

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

I'm trying to program an Adafruit Trinket using avr-gcc et. al. with the Makefile from the Bare-Arduino-Project on macOS Catalina. I can build projects for standard boards like the Uno, but not for ...
dlu's user avatar
  • 1,651
0 votes
1 answer
827 views

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

I've compiled an Arduino program via a Makefile and have the resulting hex file. From the Mac command line, how do I upload this hex file to my STM32 Cortex M3 board? For an ATMEL processor I would ...
Mark Harrison's user avatar
1 vote
1 answer
3k views

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

I want to send characters to Arduino serial port which makes the Arduino turn on/off an LED. Here is the code: int led_main=8; void setup() { pinMode(led_main, OUTPUT); Serial.begin(9600); ...
CluelessNoob's user avatar
-1 votes
1 answer
53 views

Can the function be written without ";" in the end? [closed]

I have seen the following code on the Internet: #include <SoftwareSerial.h> SoftwareSerial mySerial(8,9); void setup() { mySerial.begin(9600); Serial.begin(9600); delay(100); } ...
Асмир Абдимажитов's user avatar
2 votes
1 answer
2k views

Arduino: command not found

After installing the Arduino IDE on MacOS (1.8.5), I am trying to run some commands in the terminal to flash the firmware on an Uno R3. I have successfully connected and uploaded through the GUI, but ...
Matthew's user avatar
  • 151
0 votes
1 answer
2k views

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

Like make for not ESP Arduino target, is there a CLI command like esptool.py to upload in the hardware ? I've seen makeEspArduino but seems to be not trivial ? What about espressif ESP32 component ? ...
E.Racineux's user avatar
0 votes
1 answer
12k views

SSD1306 / U8glib display fonts and commands

I cannot seem to find any reference for the SSD 1306 or U8glib display font library or any command reference, like all the options for display() etc. For my fonts I been going into the utility folder ...
Jim's user avatar
  • 31
1 vote
1 answer
1k views

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

I installed Arduino IDE version 2.1 on Ubuntu via apt-get. Then I typed the following command in terminal to see if the Arduino IDE compiles my sketch. arduino --verify xx.ino However, this ...
Nownuri's user avatar
  • 115
0 votes
1 answer
205 views

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

I am using the ESP8266 board manager. I want to see how Arduino IDE compiles my code once I click Verify. Why do I want to do this? I am trying to integrate a C library for which there is now ...
Kit's user avatar
  • 101
1 vote
2 answers
578 views

Compiling sketch vi command line

Since I don't like the text editor of the Arduino IDE, I decided to write a python script that I can invoke from my text editor to compile and upload my source. I program the popular esp8266 chip. So ...
dnnagy's user avatar
  • 111
1 vote
1 answer
671 views

Capturing avrdude command in IDE

With verbose upload selected the IDE provides the executed avrdude command at the top of the log. I am interested in copy pasting that avrdude command. However at the end of the upload the command is ...
Noel's user avatar
  • 135
1 vote
1 answer
195 views

avr-gcc -D is ignored

Im trying to use XCode to compile avr program with arduino libs but seems like something wrong with my Makefile because it throws me warnings like # warning "F_CPU not defined for <util/delay.h&...
user840250's user avatar
1 vote
2 answers
1k views

How to change Arduino Nano MODEL_ID

I'm working on a project using a set of different Arduino Nano connected to a Raspberry Pi through USB. Now my question is: "how can I, from the Pi's point of view, differentiate all of those Arduino ...
Ulysse Darmet's user avatar
0 votes
1 answer
105 views

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

I prefer writing code in Vim, so I'd like to get a workflow going with the Arduino CLI. I used to use ino, but I didn't like the restructuring of the project, which meant anyone who downloaded the ...
squarefrog's user avatar
1 vote
1 answer
5k views

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

I'm trying to get GPS coordinates and send them to my API through the GPRS SIM900 and GPS NEO-6M shields. In setup(), I first start the GPRS shield and call the function that connects to the internet....
Robson Fagundes's user avatar
6 votes
2 answers
2k views

Arduino command line vs. Arduino builder

I'm working on adding my Arduino to continuous integration and I came across two different possible ways of doing this, Arduino command line, and arduino-builder. Can someone explain why the arduino-...
Bob's user avatar
  • 175
0 votes
1 answer
530 views

Use command line to upload hex code to teensy.ex

I need a command line implementation for uploading code to Teensy-LC through Windows 8.1 operating system I know Paul has not released support for command line for Teensy-LC yet but i would like to ...
newbie2015's user avatar
2 votes
1 answer
238 views

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

I have an Arduino based board using ATmega168PB, but so far only Atmel's provided toolchain supports this microcontroller. I can download the toolchain from Atmel's website, but I am not sure how to ...
Rodrigo Da Silva Guerra's user avatar
3 votes
2 answers
123 views

Connecting via serial with Arduino comand line

Since inotool is dead, I'm trying to transition over to Arduino's built-in command line tool. It seems largely equivalent, but the one feature it seems to be missing is a serial interface. e.g. ...
Cerin's user avatar
  • 1,608