This repository was archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
[0.6.0] Cannot start build for ESP32 on Windows #1626
Copy link
Copy link
Open
Description
OS: Windows 10
VS Code: 1.76.2
Arduino extension: 0.6.0
Arduino: arduino-cli 0.30, 0.31
After upgrading to 0.6.0 I'm not able to compile the project for ESP32 because of some bad path substitution:
Please see the build logs in output path: c:\tmp\_ArduinoOutput\esp32\TFT_flipscreen
Using board 'lolin_c3_mini' from platform in folder: C:\software\arduino\platforms\esp32.2.0.7\hardware\esp32\2.0.7
Using core 'esp32' from platform in folder: C:\software\arduino\platforms\esp32.2.0.7\hardware\esp32\2.0.7
cmd /c if exist "C:\\Users\\vlast\\OneDrive\\Dokumenty\\Arduino\\Esp32\\TFT_flipscreen\\partitions.csv" COPY /y "C:\\Users\\vlast\\OneDrive\\Dokumenty\\Arduino\\Esp32\\TFT_flipscreen\\partitions.csv" "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\partitions.csv"
cmd /c if not exist "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\partitions.csv" if exist "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\variants\\lolin_c3_mini\\partitions.csv" COPY "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\variants\\lolin_c3_mini\\partitions.csv" "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\partitions.csv"
cmd /c if not exist "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\partitions.csv" COPY "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\tools\\partitions\\default.csv" "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\partitions.csv"
cmd /c IF EXIST "C:\\Users\\vlast\\OneDrive\\Dokumenty\\Arduino\\Esp32\\TFT_flipscreen\\bootloader.bin" ( COPY /y "C:\\Users\\vlast\\OneDrive\\Dokumenty\\Arduino\\Esp32\\TFT_flipscreen\\bootloader.bin" "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\TFT_flipscreen.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\variants\\lolin_c3_mini\\bootloader.bin" ( COPY "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\variants\\lolin_c3_mini\\bootloader.bin" "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\TFT_flipscreen.ino.bootloader.bin" ) ELSE ( /esptool.exe --chip esp32c3 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\\tmp\\_ArduinoOutput\\esp32\\TFT_flipscreen\\TFT_flipscreen.ino.bootloader.bin" "C:\\software\\arduino\\platforms\\esp32.2.0.7\\hardware\\esp32\\2.0.7\\tools\\sdk\\esp32c3\\bin\\bootloader_qio_80m.elf" ) )
'/esptool.exe' is not recognized as an internal or external command,
operable program or batch file.
Error during build: exit status 1
Used platform Version Path
esp32:esp32 2.0.7 C:\software\arduino\platforms\esp32.2.0.7\hardware\esp32\2.0.7
Obviously, it didn't resolve the property {tools.esptool_py.path}
from the cmd template below.
It is defined as tools.esptool_py.path={runtime.tools.esptool_py.path}
recipe.hooks.prebuild.4.pattern.windows=cmd /c IF EXIST "{build.source.path}\bootloader.bin" ( COPY /y "{build.source.path}\bootloader.bin" "{build.path}\{build.project_name}.bootloader.bin" ) ELSE ( IF EXIST "{build.variant.path}\{build.custom_bootloader}.bin" ( COPY "{build.variant.path}\{build.custom_bootloader}.bin" "{build.path}\{build.project_name}.bootloader.bin" ) ELSE ( "{tools.esptool_py.path}/{tools.esptool_py.cmd}" {recipe.hooks.prebuild.4.pattern_args} "{build.path}\{build.project_name}.bootloader.bin" "{runtime.platform.path}\tools\sdk\{build.mcu}\bin\bootloader_{build.boot}_{build.boot_freq}.elf" ) )
At first, I thought the problem could be in the arduino-cli, but using 0.30 didn't help.
The only solution was to downgrade the extension to 0.5.0. Here it worked, even with arduino-cli 0.31.
Abdurraziq
Metadata
Metadata
Assignees
Labels
No labels