Questions tagged [arduino-cli]

Arduino CLI is an all-in-one solution that provides builder, boards/library manager, uploader, discovery and many other tools needed to use any Arduino compatible board and platforms.

Arduino CLI is an all-in-one solution that provides builder, boards/library manager, uploader, discovery and many other tools needed to use any Arduino compatible board and platforms.

Arduino-CLI on GitHub

12 questions
8
votes
4 answers

Access serial monitor on linux cli? Using arduino-cli?

I have an Arduino Uno connected via USB to a Raspberry Pi. The Raspberry Pi is accessible via SSH only. Just started a bit with arduino-cli. I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data?
groovehunter
  • 189
  • 1
  • 1
  • 4
6
votes
3 answers

Using Arduino as a standalone compiler

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 just taking a .ino sketch and passing it to the…
5
votes
1 answer

Library not found when using the arduino-cli command (although working with the Arduino IDE)

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 on an arduino uno and use the command…
ecjb
  • 165
  • 6
4
votes
2 answers

How to change partition scheme with arduino-cli?

I'm using arduino-cli to program an ESP32-S2. If I compile my sketch using the default partition scheme > arduino-cli compile -b esp32:esp32:esp32s2 sketch a lot of space is allocated for SPIFFS and OTA, which I don't use. Sketch uses 646558 bytes…
larsb
  • 95
  • 4
3
votes
1 answer

How to install Adafruit motorshield library in arduino-cli

I need to install this library using the arduino-cli software. I don't know what name to use for the library. Using arduino-cli lib install I have tried Adafruit_MotorShield, Adafruit_MotorShield_V2, and other random combinations and…
user171780
  • 151
  • 1
  • 6
3
votes
2 answers

Servo doesn't move if I detach it AFTER the write

This is a bit weird, and I don't understand anything. Basically, I'm just playing with my servo. I wrote a small program, which can be found at this link: https://pastebin.pl/view/8e9c9573 (Note: It's three files, I left some comments there, and the…
stfn
  • 33
  • 4
2
votes
1 answer

How to find out all #define used by arduino-cli in compile?

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 compile did not end normally, but some generated file…
gilhad
  • 1,466
  • 2
  • 11
  • 20
2
votes
2 answers

Function declared in another file not recognized (undefined reference to)

I am making a multi-file arduino project, but the compiler can't recognize a function. I am using the arduino-cli version 0.10.0 This is the error I received undefined reference to pin_init() collect2.exe: error: ld returned 1 exit status Error…
1
vote
0 answers

Functions downgraded in the I2S library using an ESP32

I am following the instruction to setup a microphone with an esp32 with arduino cli. Here is the tutorial https://dronebotworkshop.com/esp32-i2s/#Resources https://www.youtube.com/watch?v=m-MPBjScNRk&t=915s As pointed out in the video (timestamp…
ecjb
  • 165
  • 6
1
vote
1 answer

Can't install to arduino mega 2560 using arduino-cli, but can using IDE

I have a MKS GEN L v1.0 3dprinter board that works fine uploading using the IDE. But I need to install to it using the arduino-cli. For some reason, the command arduino-cli board list says that the board has an unknown FQBN. Which is fine, I guess.…
steve antwan
  • 183
  • 2
  • 6
1
vote
1 answer

Error while uploading the sketch to Arduino UNO using CLI

I have connected my Arduino UNO through USB to Raspberry pi 3B. I am using CLI for editing, compiling and uploading sketches > arduino-cli upload --fqbn arduino:avr:uno cli-test. However, after attempting to upload the sketch, it throws the error,…
DaSnipeKid
  • 113
  • 3
0
votes
0 answers

Input/Output error upload with arduino-cli / avrdude

Unpacked my first Arduino today, an Uno. Went to try the instructions from the arduino-cli getting started tutorial. When I connect the unit with USB, I get three quick flashes, then slow continual flash on L. ON is green and static on. When…
lash
  • 101
  • 2