PlatformIO Community

Espidf-arduino-blink example fails to build...again?

Using the@maxgerhardt example from https://github.com/maxgerhardt/pio-espidf-arduino-repro

fails with this error:

c:/users/peter/.platformio/packages/toolchain-xtensa32@2.80200.200827/bin/…/lib/gcc/xtensa-esp32-elf/8.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lUsersPeter.platformiopackagesframework-espidf@3.40001.200521componentsxtensaesp32libhal

platform.ini is unmodified from the example.

does anyone have an example arduino-espidf that currently works?

OK, after much thrashing about, this appear to be some kind of tool chain corruption. I mostly fixed the issue by uninstalling PIO from VSCode and deleting the .platformio directory and then reinstalling PIO. (OS is Win 10)

so now example blink builds as well as my own arduino-esp32 code but i do get an “error” in installing windows-curses. Is windows-curses required??

CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (3.3.1+sha.33ff413) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (jlink) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 0.0.0+sha.d011dd7
  • framework-espidf 3.40001.200521 (4.0.1)
  • tool-cmake 3.16.4
  • tool-esptoolpy 1.30100.210531 (3.1.0)
  • tool-idf 1.0.1
  • tool-mconf 1.4060000.20190628 (406.0.0)
  • tool-ninja 1.9.0
  • tool-openocd-esp32 2.1000.20210721 (10.0)
  • toolchain-esp32ulp 1.22851.191205 (2.28.51)
  • toolchain-xtensa32 2.80400.210211 (8.4.0)
    Installing windows-curses package
    Processing c:\users\peter.platformio\packages\framework-espidf\tools\kconfig_new\esp-windows-curses
    ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:\Users\Peter\.platformio\packages\framework-espidf\tools\kconfig_new\esp-windows-curses’

*** Error 1