VSCode RP2040 Project Creation Steps

You can clone the template project from our github repository with the following command:

git clone https://github.com/LearnEmbeddedSystems/rp2040-project-template

If you want to do this without a template then use the following steps:

  • Create a new directory for your project
  • Copy the “pico_sdk_import.cmake” file from the Pico SDK into your directory
  • Copy the “.VSCode” folder from the pico-examples into your directory
  • Create a placeholder “main.c” file
  • Create a CMakeLists.txt file (code below)

CMakeLists.txt code:

cmake_minimum_required(VERSION 3.13)





# Add pico_stdlib library, add more if used
target_link_libraries(template pico_stdlib)

# enable usb output, disable uart output
pico_enable_stdio_usb(template 1)
pico_enable_stdio_uart(template 0)

# Need to generate UF2 file for upload to RP2040

Leave a comment

Your email address will not be published. Required fields are marked *