ndabas / pico-setup-windows

Quickly get started with Raspberry Pi Pico/RP2040 on Windows
Apache License 2.0
298 stars 35 forks source link

"Visual Studio Code for Pico" doesn't work + vscode has CMake problem #2

Closed BlueDig closed 3 years ago

BlueDig commented 3 years ago

I am quite old to programming but quite new to vscode, so maybe I am missing something obvious not mentioned in the readme file. Two problems:

ndabas commented 3 years ago

You need to configure the CMake extension as explained in the Getting started guide, section 8.2.4. You will need to set the CMake Generator to "NMake Makefiles".

I'm not sure why the "Visual Studio Code for Pico" shortcut did not work for you, given that you do have Visual Studio Code installed. I'll probably add a check there to stop and show an error message if it fails.

BlueDig commented 3 years ago

Thanks for the help- There is still something wrong with the paths, however: the path to nmake.exe is not set. I did not use the Microsoft build tool on this particular computer before, so the build tools were installed by your package, but the path was not set.

ndabas commented 3 years ago

I really should've asked at the outset -- what version of Windows are you using - 7 or 10? 32 or 64 bit? I haven't tested extensively outside of Windows 10 x64, so there might be some issues when installing on other versions.

When you open the "Developer command prompt for Pico", do you see any error messages in the terminal window?

BlueDig commented 3 years ago

Win 10 x64 20H2. No error messages in Developer Command prompt, but "Visual Studio Code for Pico" doesn't work. After many problems with Cmake project configuration I finally managed to get the vscode working correctly with all the Pico stuff. Simple Blink compiles to 24 KiB binaries; disassembly shows dozens of unnecessary routines, never called code getting into this binary - but this is a different story.

ndabas commented 3 years ago

Thanks for the update. I don't see any further action here apart from adding some more error checking and logging in the installer. Closing.