Comments: Efficient Arduino Programming with Arduino CLI and Visual Studio Code

Pages

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • REDACTED-GDPR / about 5 years ago / 2

    FYI, the "includePath" inside of your c_cpp_properties.json file has 'Arduino' spelled incorrectly once (look for 'Arduion').

  • Member #693460 / about 3 years ago / 1

    I created a github repository that used this guide for a starter project https://github.com/nealfennimore/vscode-arduino-cli-starter

  • Member #1513466 / about 5 years ago / 1

    Hey nice tutorial! I have one question - how do you set up VSCode+ Arduino with the "Find All References" feature? (Eg. I want to see all places from where function X() is called in my arduino project, including libraries) It's not included with the official C/C++ extension, and the plugin C++ Intellisense does not work. I'm currently trying to set up an RTags server to use with the Rtags client VSCode plugin - but that's a lot of work and I'm not sure if it will work. Do you know any easier solution for this?

  • dksmall / about 5 years ago / 1

    Well I'm trying to compile a sketch for a redboard, but cli can't find the board. If I do "arduino-cli core search sparkfun", nothing is found. I have the redboard installed and my sketch compiles with the arduino IDE. Any ideas?

    • jimblom / about 5 years ago / 1

      As the RedBoard doesn't have a unique USB VID/PID (just uses the standard FTDI ID's), I'm not sure the board manager will be able to find it.

      I was using a RedBoard during the duration of writing this tutorial, though. You should be able to use an Arduino Uno (arduino:avr:uno) as a substitute for it.

      • dksmall / about 5 years ago * / 1

        Actually a little googling and it looks like I have a common problem that's been fixed but not released yet. Several of the commands have a runtime error. I was using a W7 PC, going to try W10 now and see if it's any better.

        Update: W10 has the same issues. Also tried the uno board with the same results. I guess I'll wait for the next release of the cli tool.


If you've found an issue with this tutorial content, please send us your feedback!