Arduino-like board options?

Hey all,

Learning and transferring some old projects to PlatformIO from visual micro(Arduino) and a huge thing that has been frustrating me, maybe I am just blind though.

So in Arduino/visual micro I am given a menu similar to:

Particularly I need to configure:

  • Zigbee Mode option when I am working with the ESP32-C6
  • Partition schemes
  • Flash size
  • USB modes/CDC
  • Flash encryption

I am sure I am missing a lot of things I will run into during testing, but is there a resource I am missing where I can actually find these board options?

An example of what I am looking for:
-DARDUINO_USB_CDC_ON_BOOT=1
But where do I find all these options in one place rather than just coming across it in random forum threads.

You’ll find all available settings in the boards.txt

The settings for the ESP32-C6 are in the lines from 778 to 980.
Be aware, it’s a big file :wink:

https://docs.platformio.org/en/latest/platforms/espressif32.html#partition-tables

Set automatically from partition scheme, but also

board_upload.flash_size = 8MB

Oof. Not supported by default for Arduino-ESP32, only ESP-IDF. (https://docs.platformio.org/en/latest/frameworks/espidf.html#security-features)

Only available in PIOArduino platform, e.g.,

USB modes / CDC as described above.

perfect! that is what I was looking for