I just installed the new VS Code extension, which installs the SDK and examples. My platform is Windows 10 Pro.
Decided to test by creating a 'blink' project from the example. At the completion of the project creation an 'error creating project' message was displayed.
It appears that the directory structure is intact
The VS Code Developer Tools console gives details on the error. The complete VS Code log file is attached - the following extraction seemed to be most relevant to this issue. Note that the first line - that actually creates the project - is really long and you have to scroll the code box to see it. It's copied below for easier viewing.
I'm not a command line user of the build tools and cmake isn't in my wheelhouse (yet). I just wanted to have any easy entry into Pico with VS Code. I've done micropython on the Pico, included some embedded assembler - so not a newbie here.
Any suggestions appreciated. Mods - please move to different forum if this isn't the correct one.
Decided to test by creating a 'blink' project from the example. At the completion of the project creation an 'error creating project' message was displayed.
It appears that the directory structure is intact
Code:
<DIR> .vscode 1,479 blink.c<DIR> build 1,969 CMakeLists.txt 3,859 pico_sdk_import.cmake
console.ts:137 [Extension Host] [ERROR] [NewProjectPanel] Generator Process error: Command failed: "C:/Users/purbanus/.pico-sdk/python/3.12.1/python.exe" "c:/Users/purbanus/.vscode/extensions/raspberry-pi.raspberry-pi-pico-0.15.1/scripts/pico_project.py" -board pico_w -exam -d 0 --project vscode --projectRoot "c:\projects\rPi\pico\getting-started" --sdkVersion 2.0.0 --toolchainVersion 13_2_Rel1 --picotoolVersion 2.0.0 --openOCDVersion 0.12.0+dev --ninjaPath "C:/Users/purbanus/.pico-sdk/ninja/v1.12.1/ninja" --cmakePath "C:/Users/purbanus/.pico-sdk/cmake/v3.28.6/bin/cmake" -cupy "blink"
Code:
console.ts:137 [Extension Host] [ERROR] [NewProjectPanel] Generator Process error: Command failed: "C:/Users/purbanus/.pico-sdk/python/3.12.1/python.exe" "c:/Users/purbanus/.vscode/extensions/raspberry-pi.raspberry-pi-pico-0.15.1/scripts/pico_project.py" -board pico_w -exam -d 0 --project vscode --projectRoot "c:\projects\rPi\pico\getting-started" --sdkVersion 2.0.0 --toolchainVersion 13_2_Rel1 --picotoolVersion 2.0.0 --openOCDVersion 0.12.0+dev --ninjaPath "C:/Users/purbanus/.pico-sdk/ninja/v1.12.1/ninja" --cmakePath "C:/Users/purbanus/.pico-sdk/cmake/v3.28.6/bin/cmake" -cupy "blink"PICO_SDK_PATH is C:/Users/purbanus/.pico-sdk/sdk/2.0.0Target board (PICO_BOARD) is 'pico_w'.Using board configuration from C:/Users/purbanus/.pico-sdk/sdk/2.0.0/src/boards/include/boards/pico_w.hDefaulting platform (PICO_PLATFORM) to 'rp2040' based on PICO_BOARD setting.Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified.Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc'Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi'Build type is DebugUsing regular optimized debug build (set PICO_DEOPTIMIZED_DEBUG=1 to de-optimize)TinyUSB available at C:/Users/purbanus/.pico-sdk/sdk/2.0.0/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.Compiling TinyUSB with CFG_TUSB_DEBUG=1BTstack available at C:/Users/purbanus/.pico-sdk/sdk/2.0.0/lib/btstackcyw43-driver available at C:/Users/purbanus/.pico-sdk/sdk/2.0.0/lib/cyw43-driverPico W Bluetooth build support available.lwIP available at C:/Users/purbanus/.pico-sdk/sdk/2.0.0/lib/lwipPico W Wi-Fi build support available.mbedtls available at C:/Users/purbanus/.pico-sdk/sdk/2.0.0/lib/mbedtlsy @ console.ts:137$logExtensionHostMessage @ mainThreadConsole.ts:39S @ rpcProtocol.ts:458Q @ rpcProtocol.ts:443M @ rpcProtocol.ts:373L @ rpcProtocol.ts:299(anonymous) @ rpcProtocol.ts:161B @ event.ts:1230fire @ event.ts:1261fire @ ipc.net.ts:652K.onmessage @ localProcessExtensionHost.ts:378log.ts:439 ERR [Extension Host] [[31mERROR[0m] [NewProjectPanel] Generator Process exited with code: nullconsole.ts:137 [Extension Host] [ERROR] [NewProjectPanel] Generator Process exited with code: nullnotificationsAlerts.ts:42 Could not create new project: blink
Any suggestions appreciated. Mods - please move to different forum if this isn't the correct one.
Statistics: Posted by urbite — Wed Aug 21, 2024 3:59 pm