88; Please visit documentation for the other options and examples
99; https://docs.platformio.org/page/projectconf.html
1010
11+ [platformio]
12+ ; Set a path to a cache folder
13+ build_cache_dir = .build_cache
14+
1115[env]
1216platform = espressif32
1317board = esp32-c3-devkitc-02
@@ -23,12 +27,6 @@ board_build.esp-idf.extra_lf_files =
2327; add coredump flash partition
2428board_build.partitions = partitions_example.csv
2529
26- [env:espidf]
27- framework = espidf
28- platform_packages =
29- ; get specific ESP-IDF version (5.1.2)
30- framework-espidf@^3.50102.240122
31-
3230; wrapper to run the memfault build id script on the output binary
3331extra_scripts =
3432 post:add_build_id.py
@@ -43,7 +41,16 @@ build_flags =
4341 -Icomponents/memfault-firmware-sdk/components/include
4442 -include components/memfault-firmware-sdk/ports/include/memfault/ports/freertos_trace.h
4543
44+ [env:espidf]
45+ framework = espidf
46+ platform_packages =
47+ ; get specific ESP-IDF version (5.1.2)
48+ framework-espidf@^3.50102.240122
4649
47- [platformio]
48- ; Set a path to a cache folder
49- build_cache_dir = .build_cache
50+ [env:arduino]
51+ framework = arduino, espidf
52+ platform_packages =
53+ platformio/framework-arduinoespressif32@~3.20014.0
54+ board_build.cmake_extra_args =
55+ -DPLATFORMIO_ENABLED =TRUE
56+ -DSDKCONFIG_DEFAULTS =" sdkconfig.defaults;sdkconfig.defaults.arduino"
0 commit comments