Thanks for your detailed explanation
I followed your recommendations and did some tests:
1: I tried the platform-espressif32/examples/espidf-arduino-blink at develop · platformio/platform-espressif32 · GitHub example. It compiles fine when I modify the platformio.ini file slightly.
Upload to ESP32 works and the code runs fine and as expected.
I see also sdconfig file.
But when I try to run pio run -t menuconfig to modify the options in this file. I run in an error:
Running menuconfig…
ninja: error: build.ninja:16408: expected ‘=’, got lexing error
t/.platformio/packages/tool-cmake/share/cmake-3.16/Modules/Compiler/Path…
^ near here
Error: Couldn’t execute ‘menuconfig’ target.
scons: *** [menuconfig] Explicit exit, status 1
I am using Atom with Platfom IO core 5.2.4 running on Windows 10.
2: I am trying to install your newly adapted platfrom GitHub - maxgerhardt/pio-espidf-4.4-test
But that fails:
Tool Manager: Installing platformio/toolchain-esp32ulp @ ~1.22851.0
Unpacking…
Tool Manager: toolchain-esp32ulp @ 1.22851.191205 has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2
Unpacking…
Tool Manager: toolchain-xtensa-esp32 @ 8.4.0+2021r2 has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32s2 @ 8.4.0+2021r1
Unpacking…
Tool Manager: toolchain-xtensa-esp32s2 @ 8.4.0+2021r1 has been installed!
Tool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r1
Unpacking…
Tool Manager: toolchain-riscv32-esp @ 8.4.0+2021r1 has been installed!
Tool Manager: Installing git+https://github.com/maxgerhardt/esp-idf.git#release/v4.4
git version 2.31.0.windows.1
Cloning into ‘C:\Users\edaut.platformio.cache\tmp\pkg-installing-0hrb_vcy’…
Updating files: 100% (9572/9572), done.
Submodule ‘components/asio/asio’ (GitHub - espressif/asio: Asio C++ Library) registered for path ‘components/asio/asio’
Submodule ‘components/bootloader/subproject/components/micro-ecc/micro-ecc’ (GitHub - kmackay/micro-ecc: ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors.) registered for path ‘components/boo
tloader/subproject/components/micro-ecc/micro-ecc’
Submodule ‘components/bt/controller/lib_esp32’ (GitHub - espressif/esp32-bt-lib: ESP32 Bluetooth stack (below HCI layer) precompiled libraries) registered for path ‘components/bt/controller/lib_esp32’
Submodule ‘components/bt/controller/lib_esp32c3_family’ (GitHub - espressif/esp32c3-bt-lib: ESP32-C3/S3 Bluetooth stack (below HCI layer) precompiled libraries) registered for path ‘components/bt/controller/li
b_esp32c3_family’
Submodule ‘components/bt/host/nimble/nimble’ (GitHub - espressif/esp-nimble: A fork of NimBLE stack, for use with ESP32 and ESP-IDF) registered for path ‘components/bt/host/nimble/nimble’
Submodule ‘components/cbor/tinycbor’ (GitHub - intel/tinycbor: Concise Binary Object Representation (CBOR) Library) registered for path ‘components/cbor/tinycbor’
Submodule ‘components/cmock/CMock’ (GitHub - ThrowTheSwitch/CMock: CMock - Mock/stub generator for C) registered for path ‘components/cmock/CMock’
Submodule ‘components/coap/libcoap’ (GitHub - obgm/libcoap: A CoAP (RFC 7252) implementation in C) registered for path ‘components/coap/libcoap’
Submodule ‘components/esp_phy/lib’ (GitHub - espressif/esp-phy-lib: Precompiled libraries for low-level RF functions in Espressif chips) registered for path ‘components/esp_phy/lib’
Submodule ‘components/esp_wifi/lib’ (GitHub - espressif/esp32-wifi-lib: ESP32 WiFi stack precompiled libraries) registered for path ‘components/esp_wifi/lib’
Submodule ‘components/esptool_py/esptool’ (GitHub - espressif/esptool: Espressif SoC serial bootloader utility) registered for path ‘components/esptool_py/esptool’
Submodule ‘components/expat/expat’ (GitHub - libexpat/libexpat: Fast streaming XML parser written in C99; migrated from SourceForge to GitHub) registered for path ‘components/expat/expat’
Submodule ‘components/ieee802154/lib’ (GitHub - espressif/esp-ieee802154-lib: IEEE-802.15.4 precompiled libraries.) registered for path ‘components/ieee802154/lib’
Submodule ‘components/json/cJSON’ (GitHub - DaveGamble/cJSON: Ultralightweight JSON parser in ANSI C) registered for path ‘components/json/cJSON’
Submodule ‘components/libsodium/libsodium’ (GitHub - jedisct1/libsodium: A modern, portable, easy to use crypto library.) registered for path ‘components/libsodium/libsodium’
Submodule ‘components/lwip/lwip’ (GitHub - espressif/esp-lwip: Fork of lwIP (https://savannah.nongnu.org/projects/lwip/) with ESP-IDF specific patches) registered for path ‘components/lwip/lwip’
Submodule ‘components/mbedtls/mbedtls’ (GitHub - espressif/mbedtls: An open source, portable, easy to use, readable and flexible SSL library) registered for path ‘components/mbedtls/mbedtls’
Submodule ‘components/mqtt/esp-mqtt’ (GitHub - espressif/esp-mqtt: ESP32 mqtt component) registered for path ‘components/mqtt/esp-mqtt’
Submodule ‘components/nghttp/nghttp2’ (GitHub - nghttp2/nghttp2: nghttp2 - HTTP/2 C Library and tools) registered for path ‘components/nghttp/nghttp2’
Submodule ‘components/openthread/lib’ (GitHub - espressif/esp-thread-lib: Thread protocol related precompiled libraries for ESP-IDF) registered for path ‘components/openthread/lib’
Submodule ‘components/openthread/openthread’ (GitHub - espressif/openthread: Espressif fork of OpenThread project, used to maintain ESP-specific patches and release branches) registered for path ‘components/openthread/openthread’
Submodule ‘components/protobuf-c/protobuf-c’ (GitHub - protobuf-c/protobuf-c: Protocol Buffers implementation in C) registered for path ‘components/protobuf-c/protobuf-c’
Submodule ‘components/spiffs/spiffs’ (GitHub - pellepl/spiffs: Wear-leveled SPI flash file system for embedded devices) registered for path ‘components/spiffs/spiffs’
Submodule ‘components/tinyusb/tinyusb’ (GitHub - espressif/tinyusb: Fork of tinyusb project with Espressif-specific patches.) registered for path ‘components/tinyusb/tinyusb’
Submodule ‘components/unity/unity’ (GitHub - ThrowTheSwitch/Unity: Simple Unit Testing for C) registered for path ‘components/unity/unity’
Submodule ‘examples/build_system/cmake/import_lib/main/lib/tinyxml2’ (GitHub - leethomason/tinyxml2: TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.) registered for path ‘examples/build_sys
tem/cmake/import_lib/main/lib/tinyxml2’
Submodule ‘examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib’ (GitHub - espressif/esp-cryptoauthlib: Release only fork of https://github.com/MicrochipTech/cryptoauthlib) registere
d for path ‘examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib’
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/asio/asio’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/bootloader/subproject/components/micro-ecc/micro-ecc’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/bt/controller/lib_esp32’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/bt/controller/lib_esp32c3_family’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/bt/host/nimble/nimble’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/cbor/tinycbor’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/cmock/CMock’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/coap/libcoap’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/esp_phy/lib’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/esp_wifi/lib’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/esptool_py/esptool’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/expat/expat’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/ieee802154/lib’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/json/cJSON’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/libsodium/libsodium’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/lwip/lwip’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/mbedtls/mbedtls’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/mqtt/esp-mqtt’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/nghttp/nghttp2’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/openthread/lib’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/openthread/openthread’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/protobuf-c/protobuf-c’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/spiffs/spiffs’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/tinyusb/tinyusb’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/unity/unity’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/examples/build_system/cmake/import_lib/main/lib/tinyxml2’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthli
b’…
From GitHub - espressif/asio: Asio C++ Library
- branch f31694c9f1746ba189a4bcae2e34db15135ddb22 → FETCH_HEAD
Submodule path ‘components/asio/asio’: checked out ‘f31694c9f1746ba189a4bcae2e34db15135ddb22’
Submodule path ‘components/bootloader/subproject/components/micro-ecc/micro-ecc’: checked out ‘d037ec89546fad14b5c4d5456c2e23a71e554966’
Submodule path ‘components/bt/controller/lib_esp32’: checked out ‘54a69e53616cbd3e3f3bbf150e42930a7912349a’
Submodule path ‘components/bt/controller/lib_esp32c3_family’: checked out ‘86145c184578f9061d2d0efb30fefa20a91a75e9’
Submodule path ‘components/bt/host/nimble/nimble’: checked out ‘554cd264cd028886411b183885bb21b47b8901a6’
Submodule path ‘components/cbor/tinycbor’: checked out ‘7c349dbb6b8d76db39383b226d3ebdf59b8ab37d’
Submodule path ‘components/cmock/CMock’: checked out ‘eeecc49ce8af123cf8ad40efdb9673e37b56230f’
Submodule ‘vendor/c_exception’ (GitHub - ThrowTheSwitch/CException: Lightweight exception implementation for C) registered for path ‘components/cmock/CMock/vendor/c_exception’
Submodule ‘vendor/unity’ (GitHub - ThrowTheSwitch/Unity: Simple Unit Testing for C) registered for path ‘components/cmock/CMock/vendor/unity’
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/cmock/CMock/vendor/c_exception’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/cmock/CMock/vendor/unity’…
Submodule path ‘components/cmock/CMock/vendor/c_exception’: checked out ‘71b47be7c950f1bf5f7e5303779fa99a16224bb6’
Submodule path ‘components/cmock/CMock/vendor/unity’: checked out ‘cf949f45ca6d172a177b00da21310607b97bc7a7’
Submodule path ‘components/coap/libcoap’: checked out ‘3aa11612c143c9734d72022720f33e12506f7a2c’
Submodule ‘ext/tinydtls’ (GitHub - eclipse/tinydtls: Eclipse tinydtls) registered for path ‘components/coap/libcoap/ext/tinydtls’
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/coap/libcoap/ext/tinydtls’…
From GitHub - eclipse/tinydtls: Eclipse tinydtls
- branch 59055b8a935bc53bf69d002fc089ad4bd08851b2 → FETCH_HEAD
Submodule path ‘components/coap/libcoap/ext/tinydtls’: checked out ‘59055b8a935bc53bf69d002fc089ad4bd08851b2’
Submodule path ‘components/esp_phy/lib’: checked out ‘2d89c532ccba0bb9988d1d1c6d719bbe1d8b65b8’
Submodule path ‘components/esp_wifi/lib’: checked out ‘428480bbb90442db61fb20fed9980dd035245fe9’
Submodule path ‘components/esptool_py/esptool’: checked out ‘b082b0ed2d86b3330134c4854a021dfd14c29b08’
Submodule path ‘components/expat/expat’: checked out ‘a28238bdeebc087071777001245df1876a11f5ee’
From GitHub - espressif/esp-ieee802154-lib: IEEE-802.15.4 precompiled libraries.
- branch f7b5e8059a3bb6f321e79ac3bf2aa4d2a9b93326 → FETCH_HEAD
Submodule path ‘components/ieee802154/lib’: checked out ‘f7b5e8059a3bb6f321e79ac3bf2aa4d2a9b93326’
Submodule path ‘components/json/cJSON’: checked out ‘d348621ca93571343a56862df7de4ff3bc9b5667’
Submodule path ‘components/libsodium/libsodium’: checked out ‘4f5e89fa84ce1d178a6765b8b46f2b6f91216677’
Submodule path ‘components/lwip/lwip’: checked out ‘2749568fe15df2003f6c3f37f0dfd44f8f01fcd6’
Submodule path ‘components/mbedtls/mbedtls’: checked out ‘dc406b82b20481bde74a60fa8a776285d3fb9cf3’
Submodule path ‘components/mqtt/esp-mqtt’: checked out ‘89894bd0c611b1392967fe90bb49682eba858383’
Submodule path ‘components/nghttp/nghttp2’: checked out ‘8f7b008b158e12de0e58247afd170f127dbb6456’
Submodule ‘third-party/mruby’ (GitHub - mruby/mruby: Lightweight Ruby) registered for path ‘components/nghttp/nghttp2/third-party/mruby’
Submodule ‘third-party/neverbleed’ (GitHub - tatsuhiro-t/neverbleed: privilege separation engine for OpenSSL / LibreSSL) registered for path ‘components/nghttp/nghttp2/third-party/neverbleed’
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/nghttp/nghttp2/third-party/mruby’…
Cloning into ‘C:/Users/edaut/.platformio/.cache/tmp/pkg-installing-0hrb_vcy/components/nghttp/nghttp2/third-party/neverbleed’…
Submodule path ‘components/nghttp/nghttp2/third-party/mruby’: checked out ‘7c91efc1ffda769a5f1a872c646c82b00698f1b8’
From GitHub - tatsuhiro-t/neverbleed: privilege separation engine for OpenSSL / LibreSSL
- branch b967ca054f48a36f82d8fcdd32e54ec5144f2751 → FETCH_HEAD
Submodule path ‘components/nghttp/nghttp2/third-party/neverbleed’: checked out ‘b967ca054f48a36f82d8fcdd32e54ec5144f2751’
From GitHub - espressif/esp-thread-lib: Thread protocol related precompiled libraries for ESP-IDF
- branch 9a8d34d8f698cad2c9468468b473e26a3dda51b9 → FETCH_HEAD
Submodule path ‘components/openthread/lib’: checked out ‘9a8d34d8f698cad2c9468468b473e26a3dda51b9’
Submodule path ‘components/openthread/openthread’: checked out ‘c36c0e77a2465355bcf13bd7dc718d8c9aa6ff64’
Submodule path ‘components/protobuf-c/protobuf-c’: checked out ‘dac1a65feac4ad72f612aab99f487056fbcf5c1a’
Submodule path ‘components/spiffs/spiffs’: checked out ‘f5e26c4e933189593a71c6b82cda381a7b21e41c’
From GitHub - espressif/tinyusb: Fork of tinyusb project with Espressif-specific patches.
- branch c4badd394eda18199c0196ed0be1e2d635f0a5f6 → FETCH_HEAD
Submodule path ‘components/tinyusb/tinyusb’: checked out ‘c4badd394eda18199c0196ed0be1e2d635f0a5f6’
Submodule path ‘components/unity/unity’: checked out ‘7d2bf62b7e6afaf38153041a9d53c21aeeca9a25’
Submodule path ‘examples/build_system/cmake/import_lib/main/lib/tinyxml2’: checked out ‘7e8e249990ec491ec15990cf95b6d871a66cf64a’
Submodule path ‘examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib’: checked out ‘36d0642e66ff5b1c7a291873f24c498ca6ffedef’
Error: Traceback (most recent call last):
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio_main_.py”, line 121, in main
cli() # pylint: disable=no-value-for-parameter
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\core.py”, line 1053, in main
rv = self.invoke(ctx)
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\commands_init_.py”, line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “C:\Users\edaut.platformio\penv\lib\site-packages\click\decorators.py”, line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\commands\run\command.py”, line 144, in cli
is_test_running,
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\commands\run\command.py”, line 176, in process_env
result = {“env”: name, “duration”: time(), “succeeded”: ep.process()}
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\commands\run\processor.py”, line 68, in process
build_vars, build_targets, self.silent, self.verbose, self.jobs
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\platform_run.py”, line 60, in run
self.autoinstall_runtime_packages()
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\platform_packages.py”, line 74, in autoinstall_runtime_packages
self.pm.install(self.get_package_spec(name))
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\package\manager_install.py”, line 49, in install
spec, silent=silent, skip_dependencies=skip_dependencies, force=force
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\package\manager_install.py”, line 97, in _install
pkg = self.install_from_url(spec.url, spec, silent=silent)
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\package\manager_install.py”, line 152, in install_from_url
return self._install_tmp_pkg(pkg_item)
File “C:\Users\edaut.platformio\penv\lib\site-packages\platformio\package\manager_install.py”, line 244, in _install_tmp_pkg
shutil.copytree(tmp_pkg.path, dst_pkg.path, symlinks=True)
File “C:\Users\edaut.platformio\python3\lib\shutil.py”, line 368, in copytree
raise Error(errors)
shutil.Error: [(‘C:\Users\edaut\.platformio\.cache\tmp\pkg-installing-0hrb_vcy\components\coap\libcoap\examples\contiki\coap_config.h’, ‘C:\U
sers\edaut\.platformio\packages\framework-espidf\components\coap\libcoap\examples\contiki\coap_config.h’, ‘symbolic link privilege not held’), (
‘C:\Users\edaut\.platformio\.cache\tmp\pkg-installing-0hrb_vcy\components\coap\libcoap\examples\lwip\coap_config.h’, ‘C:\Users\edaut\.platf
ormio\packages\framework-espidf\components\coap\libcoap\examples\lwip\coap_config.h’, ‘symbolic link privilege not held’), (‘C:\Users\edaut\.pl
atformio\.cache\tmp\pkg-installing-0hrb_vcy\components\coap\libcoap\README’, ‘C:\Users\edaut\.platformio\packages\framework-espidf\components
\coap\libcoap\README’, ‘symbolic link privilege not held’), (‘C:\Users\edaut\.platformio\.cache\tmp\pkg-installing-0hrb_vcy\components\expat\e
xpat\README.md’, ‘C:\Users\edaut\.platformio\packages\framework-espidf\components\expat\expat\README.md’, ‘symbolic link privilege not held’)]
============================================================
An unexpected error occurred. Further steps:
============================================================
Deleted the .platformio\packages directory to eliminate any unwanted dependencies but problem still occurs.