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
131 stars 16 forks source link

Can't find toolchain #111

Closed Slion closed 3 weeks ago

Slion commented 3 weeks ago

Trying to switch SDK from 1.5.1 to 2.0.0

So I did re-import my project using the SDK 2.0.0 option and now cmake-kits.json points to /.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/pico_arm_gcc.cmake which does not exists.

Those are the toolchains from that SDK 2.0.0 folder: image

So it looks like the proper toolchain need to be selected for the board you are targeting somehow. My target is currently Pico W so I'm guessing I want pico_arm_cortex_m0plus_gcc.cmake

Using pico_arm_cortex_m0plus_gcc.cmake did work.

will-v-pi commented 3 weeks ago

This has been fixed in ae017f6f2b4b730c8759e488a750c523059762b3 - you can just delete the toolchain line

Slion commented 3 weeks ago

Thanks! I can confirm removing the toolchain line works just fine so I'm assuming it picks up the proper toolchain for your board.