I’m using PlatformIO with VSCode for STM32 platform (mbed) under Windows 10.
I have an issue, that seems to be a problem of spaces in username (problem doesn’t reproduce on other computer with no spaces in username and the same OS and environment).
When I’m trying to build the project it give the error:
Generating LD script .pioenvs\bluepill_f103c8\STM32F103XB.ld.link_script.ld
arm-none-eabi-cpp: error: C:\users\Iegor: No such file or directory
arm-none-eabi-cpp: warning: ‘-x c’ after last input file has no effect
Compiling .pioenvs\bluepill_f103c8\lib182\TextLCD_ID184\TextLCD.o
Compiling .pioenvs\bluepill_f103c8\lib00f\mbed-STM32F103C8T6_ID2508\SysClockConf.o
*** [.pioenvs\bluepill_f103c8\STM32F103XB.ld.link_script.ld] Error 1
How to fix it? Updating - didn’t help.
VSCode version : 1.24.0
PlatformIO : Home 0.9.6·Core 3.6.0a2
P.S. During the brief look, I noticed that during building there is creation of file main.d, and it is the only file, where path are not covered with quotes.
File is located “project_folder”.pioenvs\bluepill_f103c8\src\main.d
Fragment from the inside (about 200 lines in total):
Try changing the backslash (\) between ${PROJECTSRC_DIR} and flash_without_bootloader.ld to a forward slash (/) - backslash is an escape character. If you look at the path shown in the error, you’ll see there’s no backslash between src and flash_without_bootloader.ld.
The below finds the file for me - although in my case it’s empty just so that it exists.
I have the same problem with the latest version of PlatformIO (5.0.1). My Windows username contains a space and I am unable to create a project with Espressif IoT Development Framework.
Is this a problem related to PlatformIO in VScode or is it related to the Espressif framework? It works fine when I create a project with the Arduino framework.
PIO Core Call Error: "The current working directory C:\\Users\\Cori TG0\\Documents\\PlatformIO\\Projects\\test3 will be used for the project.\r\n\r\nThe next files/directories have been created in C:\\Users\\Cori TG0\\Documents\\PlatformIO\\Projects\\test3\r\ninclude - Put project header files here\r\nlib - Put here project specific (private) libraries\r\nsrc - Put project source files here\r\nplatformio.ini - Project Configuration File\r\n\n\nError: Processing featheresp32 (platform: espressif32; board: featheresp32; framework: espidf)\r\n--------------------------------------------------------------------------------\r\nVerbose mode can be enabled via `-v, --verbose` option\r\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32.html\r\nPLATFORM: Espressif 32 (2.0.0+sha.3688b7b) > Adafruit ESP32 Feather\r\nHARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash\r\nDEBUG: Current (esp-prog) 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)\r\nPACKAGES: \r\n - framework-espidf 3.40100.200827 (4.1.0) \r\n - tool-cmake 3.16.4 \r\n - tool-esptoolpy 1.20600.0 (2.6.0) \r\n - tool-idf 1.0.1 \r\n - tool-mconf 1.4060000.20190628 (406.0.0) \r\n - tool-ninja 1.9.0 \r\n - toolchain-esp32ulp 1.22851.191205 (2.28.51) \r\n - toolchain-xtensa32 2.80200.200827 (8.2.0)\r\nInstalling ESP-IDF's Python dependencies\r\n'C:\\Users\\Cori' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n*** Error 1\r\nInstalling windows-curses package\r\n'C:\\Users\\Cori' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n*** Error 1\r\nError: Detected a whitespace character in project paths.\r\n========================== [FAILED] Took 0.97 seconds =========================="