raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
129 stars 16 forks source link

pico_w compile error #89

Closed Octopus1633 closed 1 month ago

Octopus1633 commented 1 month ago

Extension version: 0.16.2 When the development board is selected as pico_w, the compilation will report an error.

企业微信截图_17268867443750
will-v-pi commented 1 month ago

Could you confirm what steps you took to create this project? When clicking "New project from example", selecting "blink" example and "Pico W" board, and then creating the project, it compiles successfully for me and only has 81 steps (whereas yours has 175 steps)

Octopus1633 commented 1 month ago

Extension version: 0.16.2 SDK version: 2.0 Development board: pico_w Compilation chain: 13_2_Rel1

Hello,I had previously pulled the complete program from pico-examples so I did not create a new project. I commented out all other programs in CMakeLists.txt and only compiled blink, and this error occurred.

企业微信截图_17271425894756

I just tried to create a blink project alone, and the compilation still gave an error.

企业微信截图_17271428648961
will-v-pi commented 1 month ago

It looks like your submodule checkout may have failed when the extension downloaded the SDK - could you try deleting the ~/.pico-sdk/sdk/2.0.0 directory and then re-opening your project, which will re-download the SDK?

Alternatively if you have git installed, you can cd into the ~/.pico-sdk/sdk/2.0.0 directory and run git submodule update init to checkout the submodules.

Octopus1633 commented 1 month ago

Thank you, this method successfully solved the problem!