I want to run pio in a existing esp32 project. I copy the platformio.ini to that project folder and run the command
pio init --ide vscode
but it error with Invalid character escape '\U'
I have ever try to build a demo esp32 project with pio and it works.
This is my second project
system: win10
PlatformIO Core, version 6.1.5
Here is the full log
C:\Users\22380\Documents\GitHub\wireless-esp8266-dap> pio init --ide vscode
Resolving esp32dev dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
Error: Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)
------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.2.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (jlink) External (cmsis-dap, esp-bridge, 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-espidf @ 3.40402.0 (4.4.2)
- tool-cmake @ 3.16.4
- tool-esptoolpy @ 1.40201.0 (4.2.1)
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-ninja @ 1.9.0
- tool-openocd-esp32 @ 2.1100.20220706 (11.0)
- toolchain-esp32ulp @ 1.22851.191205 (2.28.51)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Reading CMake configuration...
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/sdkconfig.esp32dev
Loading defaults file C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/sdkconfig.defaults...
Loading defaults file C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/sdkconfig.defaults.esp32...
C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/sdkconfig.defaults.esp32:894 CONFIG_USB_DESC_CUSTOM_VID was replaced with CONFIG_TINYUSB_DESC_CUSTOM_VID
C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/sdkconfig.defaults.esp32:895 CONFIG_USB_DESC_CUSTOM_PID was replaced with CONFIG_TINYUSB_DESC_CUSTOM_PID
-- App "wireless_esp_dap" version: v0.2.1
-- Adding linker script C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/.pio/build/esp32dev/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script C:/Users/22380/.platformio/packages/framework-espidf/components/soc/esp32/ld/esp32.peripherals.ld
-- Websocket transport is disabled so the esp_websocket_client component will not be built
-- Configuring incomplete, errors occurred!
See also "C:/Users/22380/Documents/GitHub/wireless-esp8266-dap/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log".
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository: C:/Users/22380/.platformio/packages/framework-espidf/components/openthread/openthread/../../../.git/modules/components/openthread/openthread
CMake Error at C:/Users/22380/.platformio/packages/framework-espidf/tools/cmake/component.cmake:297 (foreach):
Syntax error in cmake code at
C:/Users/22380/.platformio/packages/framework-espidf/tools/cmake/component.cmake:297
when parsing string
config;include;C:\Users\22380\.platformio\packages\framework-espidf/components/esp_ringbuf/include/;C:\Users\22380\.platformio\packages\framework-espidf/components/
Invalid character escape '\U'.
Call Stack (most recent call first):
C:/Users/22380/.platformio/packages/framework-espidf/tools/cmake/component.cmake:473 (__component_add_include_dirs)
C:/Users/22380/.platformio/packages/framework-espidf/tools/cmake/component.cmake:593 (idf_component_register)
components/DAP/CMakeLists.txt:6 (register_component)
============================================== [FAILED] Took 5.12 seconds ==============================================
I am willing to provide more information if you need
Thanks