Datasheet

Table Of Contents
Figure 19. Setting
PICO_SDK_PATH
Environment Variable
in the CMake
Extension
Additionally you will need to scroll down to "Cmake: Generator" and enter "NMake Makefiles" into the box.
IMPORTANT
If you do not change the "Cmake: Generator" Visual Studio will default to ninja and the build might fail as GCC
outputs dependency-information in a slightly-incorrect format that ninja can’t understand.
Now close the Settings page and go to the File menu and click on "Open Folder" and navigate to pico-examples repo and
hit "Okay". You’ll be prompted to configure the project, see Figure 20. Select "GCC for arm-none-eabi" for your compiler.
Figure 20. Prompt to
configure your project
in Visual Studio Code.
Go ahead and click on the "Build" button (with a cog wheel) in the blue bottom bar of the window. This will create the
build directory and run CMake and build the examples project, including "Hello World".
This will produce ELF, bin, and uf2 targets, you can find these in the hello_world/serial and hello_world/usb directories
inside the newly created build directory. The UF2 binaries can be dragged-and-dropped directly onto a RP2040 board
attached to your computer using USB.
Getting started with Raspberry Pi Pico
9.2. Building on MS Windows 43