Page 1 of 1

Settings between Arduino-Esp32 and esp-idf

Posted: Fri Jun 23, 2023 4:34 pm
by bpuppabt
How can I map the various settings from the Arduino-esp32 environment to the esp-idf? Specific settings I'd like to translate are from the Arduino Tools menu to the idf.py menuconfig are:

USB Mode: "Hardware CDC and JTAG"
USB CDC On Boot: "Disabled"
USB Firmware MSC On Boot: "Disabled"
USB DFU On Boot: "Disabled"
Upload Mode: "UART0/Hardware CDC"

It seems like it should be pretty straight forward, but I've been able to get the Arduino IDE to work but not on the esp-idf side.

Re: Settings between Arduino-Esp32 and esp-idf

Posted: Sat Jun 24, 2023 2:17 am
by ESP_Sprite
bpuppabt wrote:
Fri Jun 23, 2023 4:34 pm
USB Mode: "Hardware CDC and JTAG"
Component config → ESP System Settings → Channel for console output: USB Serial/JTAG Controller
USB CDC On Boot: "Disabled"
USB Firmware MSC On Boot: "Disabled"
USB DFU On Boot: "Disabled"
There's no direct equivalent as in ESP-IDF you'd have to initialize the USB-OTG peripheral stack yourself; unless you do that these options are disabled 'by default'.
Upload Mode: "UART0/Hardware CDC"
Not sure what this does in Arduino... you'd simply point ESP-IDF at the right 'serial' port I think.