microsoft / vscode-arduino

Visual Studio Code extension for Arduino

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can 'Enable USB CDC on boot' be enabled in the extension?

The-Experimentalist opened this issue · comments

In the Arduino IDE there is an option on the Tools menu that allows 'USB CDC on boot' to be enabled or disabled. A number of ESP32 boards require this option to be enabled to get the serial port to work. I can't find this option for the Arduino extension under 'File > Preferences > Settings'

From my investigations this requires the following to be added to the CMake command:
-DARDUINO_USB_MODE
-DARDUINO_USB_CDC_ON_BOOT

I have raised this as an issue as I can't find a forum to post it on. Sorry if this is not the correct way to do it,