## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• 09:38
esp13 commented #676
• 03:20
Dotrar commented #838
• 02:31
Gueka commented #830
• Sep 17 08:37
RongXiefdu synchronize #874
• Sep 17 08:37

RongXiefdu on reduce_time

modify gulp version (compare)

• Sep 17 08:24
RongXiefdu synchronize #874
• Sep 17 08:24

RongXiefdu on reduce_time

use ubuntu 14.04 (compare)

• Sep 17 07:42
zunhu milestoned #891
• Sep 17 07:38
zunhu closed #891
• Sep 17 07:37
zunhu commented #871
• Sep 17 07:26
zunhu labeled #871
• Sep 17 07:25
zunhu commented #871
• Sep 17 05:37
coincashbank commented #893
• Sep 17 05:36
coincashbank closed #893
• Sep 17 05:36
coincashbank opened #893
• Sep 17 05:34
zunhu closed #887
• Sep 17 05:12
xinyiz1226 commented #892
• Sep 16 15:40
tobiges edited #892
• Sep 16 15:39
tobiges opened #892
• Sep 16 08:23
zunhu commented #891
Rusted Wizard
@rustedwizard
Just a quick question, is Arduino 1.8.9 working with vscode-aruduino plugin?
Arthur Ma
@ArthurMa1978
@rustedwizard yes
Ben
@bzeeman
@ArthurMa1978 essentially yes. On macOS at least, you need to go to the file menu and choose “New Window” and with that new window active, open the 📁 containing your other sketch.
bfxdev
@bfxdev
Hi, I'm new on Gitter. I just want to let you know that I wrote a tutorial on Arduino and VSCode at https://github.com/bfxdev/Arduino/blob/master/VSCode/README.md
My experience with Arduino and VSCode is limited, so a couple of things may not be appropriate, please let me know.
This tutorial is written especially for the Gamebuino (an Arduino-based game console), but should be applicable for many other boards.
zlehnherr
@zlehnherr
Trying to setup VSCode on linux for arduino, I can't figure out how to set the command path or the path, any help?
bfxdev
@bfxdev
Please check my tutorials (written for the Gamebuino but applicable for most other boards normally):
bfxdev
@bfxdev
On Linux, there is no standard location for the executables I'm aware of. You can try "whereis arduino", then check where the link is pointing to (if it is a link). You need to set the arduino.path in the user preferences.
After that, the best is to let the arduino-builder compile something for you with activated debug logs. You will see compiler commands, which you can adapt and re-use to set the compilerPath value in the c_cpp_properties.json file.
hansstan
I'm using VS Code for ESP32 sample projects on Windows 10 and the code runs on ESP, but i don't get any output in the Serial Monitor. Where can i change settings for Serial Monitor like DTR,CTS,...?
gecko9
@gecko9
My VS Code is suddenly not remembering anything in the arduino.json. When I open the project it asks for board type and sketch etc but all those variables are correctly set. If I set them again then it promptly ignores them all next time I open the project. Using on Windows 7 64bit with Arduino IDE 1.8.5. Not sure if this happened after version update to arduino plugin as this used to work fine.
gecko9
@gecko9
Found the issue! Bug in VS Code not reading arduino.json when folder .vscode is excluded in system settings. See Microsoft/vscode-arduino#802.
tpitman
@tpitman
i am going from dev to production. i need to know all of the exact esptools.py commands that need to be issues to flash my esp32 Huzzah32 device from the command line. i can see in the VSCode log when I download to a device all of the output from the many commands, but not what the commands are. is there some place I can see of log of those so I can call them myself from the command line?
Sebastian Zug
@SebastianZug

Hi guys, I would like to debug code for an Arduino Zero. I added a general configuration file (Arduino path, etc.) and following project .vscode file

"board": "arduino:samd:arduino_zero_edbg",
"debugger": "CMSIS-DAP",
"port": "/dev/ttyACM0",
"sketch": "Analog.ino".

Compiling and flashing works fine, the controller is connected via USB "Debug" port. But I receive always a

"Cannot read property ''apply" of undefined - Source: Arduino(Extension)"

message when I try to debug. Do I have to add additional variables to the configuration? Anyone knows a detailed description of configuration parameters for this type of controller?

Arthur Ma
@ArthurMa1978
Ack. thanks @gecko9
@tpitman no idea about this since this file is from Espressif, you can contact them for help
Arthur Ma
@ArthurMa1978
@SebastianZug the on-board debugger is from Atmel, and we didn't test it, sorry. You can try the Atmel Studio 6.2 for debugging.
Buck Bukaty
@bbukaty
when I did a normal initialize in a new folder just now and made a default ino file, I immediately got this error:
cannot open source file "avr/pgmspace.h" (dependency of "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h")
well, warning not error. nevertheless, to fix it I had to add this to includePath:
"C:\\\\Program Files (x86)\\\\Arduino\\\\hardware\\\\tools\\\\avr\\\\avr**"
Buck Bukaty
@bbukaty
If a default ino script with no additional libraries or anything is giving me this warning because that wasn't in includePath, should that not just be in includePath by default?
I'm on the latest version, 0.2.25.
Buck Bukaty
@bbukaty
Just opened an issue saying the above: microsoft/vscode-arduino#818
Sebastian Zug
@SebastianZug
@ArthurMa1978 Thanks for your response! I would like to avoid Atmel Studio :-) If I try to analyze the challenges for an integration of Arduino Zero, which implementation of a controller X could be a good starting point? I guess your scripts just configure an openocd connection, isn't it?
panos
@panoukos41
hey guys i get some random errors at my .ino file
Arthur Ma
@ArthurMa1978
@bbukaty ack. will look into it
Arthur Ma
@ArthurMa1978
@SebastianZug right, unfortunately we don't have Zero in hand, would you like to test if we give you the config?
Sebastian Zug
@SebastianZug
@ArthurMa1978 Of course, it would be a pleasure!
Arthur Ma
@ArthurMa1978
@SebastianZug tried the Zero board, the debug function works well. not sure what's happened on your side, can you provide more information?
m12lrpv
@m12lrpv
Is there any documentation on configuring vscode-arduino for esp8266 and esp32 programming?
m12lrpv
@m12lrpv
actually don't worry. realised my issue was a lack of support for boards.local.txt
StephenMMorris-PB
@StephenMMorris-PB
Hi everyone. First time here. I'm working with the MXChip IoT DevKit, taking a Microsoft edX course, and in VS Code w/ Arduino examples shown via the Command Palette, I'm trying to see the "AzureIoT" folder of examples within the "Examples for MXCHIP AZ3166" folder. On one of my laptops I see this folder, but on another laptop I do NOT see this "AzureIoT" folder. I need this folder to access the GetStarted example (which includes the tasks.json file - critical for my edX course). Any help is appreciated - thanks.
StephenMMorris-PB
@StephenMMorris-PB
I solved this issue - all Azure IoT examples are no longer copied to your local drive at: C:\Users\smm-c\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\1.6.2\libraries\AzureIoT\examples. All Azure IoT Hub examples were moved to the project catalog in IoT Device Workbench.
36kyo
@36kyo
Hi, I'm using both Arduino(.ino) and Processing(.pde). I want to turn off the function that change file extensions .pde to .ino. Is it possible?
eddycrompton
@eddycrompton
@rutigl Did you get an answer to your post from 1st December 2017?
"Cannot find the OpenOCD from the launch.json debugServerPath property.Please input the right path of OpenOCD"
• I cant see any threads from that post.
I am trying to test Ardunio Uno Rev2 - which is on the list within the vscode-arduino extension, so I am assuming it is supported in the debugger.
JustinBa
@JustinBa
Hey guys. I've been trying to get an IDE setup that is better than the default Arduino IDE. I ran across your program in Visual Studios and I am trying to get it working. I have managed to get it almost completely working, but some of the libraries I use directly reference registers on the arduino and your program does not seem to like that. It is that giving out 'identifier is undefined error' for each verrible used. Is there anything I can do to get that working, or is it possibly a feature request that I could make?
Tom Barber
@tombarber
Hi all, i've recently started programming a 3pi for a maze runner challenge and am keen to move on from the Arduino IDE. I've setup vscode with the Arduino plugin and it looks promsing, but I don't get the option for the "Pololu USB AVR Programmer". This is within a separate programmers.txt within the default Arduino sketchbook location. Can someone please help me add this programmer? Thanks!
tpitman
@tpitman
i am getting an error when i try to connect to my board. It worked just 2 days ago. i think vscode just did an update
i see there is an issue on the git hub. i will see if the work around works for me.
Ash Nansen
@ashnansen
@tpitman
I had a similar problem and it has something to do with adruino skech and the way it handles the .ino files. To get this problem to disapear every .ino file needs it own folder. It would be nice if the opload file is the same as the larst edited file. And the way of chancing upload files, is simpler.
SonicD007
Hey, does anyone know how to modify the available Programmers for this extension and where the extension files are located on Windows?
SonicD007
nvm found it in %USERPROFILE%/.vscode and it was located in the following file %USERPROFILE%.vscode\extensions\vsciot-vscode.vscode-arduino-0.2.27\out\src\arduino
Does anyone know how to use a USB port instead of a serial interface when uploading? Trying to setup vscode to work with a digispark pro 16Mhz. I manually added the board and programmer by modifying the relevant .js files. Not sure what needs to be done to get it uploading via usb as arduino does it. There isn't a COM interface for this device.
OnceWasPerfect
@OnceWasPerfect
Is there way to get VSCode to upload to a pro trinket? It uses bitbanging and there isn't a com port. A google search suggests adding "port": "/dev/cu.usbserial-A6008bj4", to the json but it doesn't work for me on windows, it looks like a linux or mac thing.
OnceWasPerfect
@OnceWasPerfect
In case anyone finds this I figured it out. First you have to select the programmer you want to use (F1 then type Arduino: Select Programmer) then you can't use the upload button you have to use the command pallet to do it (F1 then type Arduino: Upload Using Programmer). You also need to add "port": "COM 1" to your arduino.json file. Pretty sure you can put anything as the port, it just needs something there to get past the no port configured prompt.
Haritz Aryandra Gits
@haritz-aryandra
are there anyone here have using signal-r?
Liya Du
@liydu
@haritz-aryandra what's your scenario for using that?
AndrewCapon
@AndrewCapon
Hi Guys, I just installed this Arduino plugin. One thing that is not working is that the arduino build output is not being parsed for errors and problems are not created. Is this normal?
🌻 𝙼𝚎𝚊𝚍𝚘𝚠 𝖀𝖛𝖆 𝕮𝖎𝖇𝖊𝖗𝖓é𝖙𝖎𝖈𝖆 𝙴𝚕𝚕𝚒𝚜 🌻