These folders will contain the ELF, bin, and uf2 target files for each project. Within the build directory, you will now find a directory for each example project.Ĭ:\Users\vha3\Pico\Hunter-Adams-RP2040-Demos\build> nmake For me, this was in the directory C:\Users\vha3\Pico\Hunter-Adams-RP2040-DemosĬ:\Users\vha3\Pico> cd Hunter-Adams-RP2040-DemosĬ:\Users\vha3\Pico\Hunter-Adams-RP2040-Demos> mkdir buildĬ:\Users\vha3\Pico\Hunter-Adams-RP2040-Demos> cd buildĬ:\Users\vha3\Pico\Hunter-Adams-RP2040-Demos\build> cmake -G "NMake Makefiles". Navigate to the Hunter-Adams-RP2040-Demos folder.The uf2 target file can be dragged-and-dropped directly onto an RP2040 board attached to your PC via USB, as explained in the next section. You will find directories for each of the other example projects too. Within the build directory, you will now find a hello_world directory.Ĭ:\Users\vha3\Pico\pico-examples\build> nmake Build the "Hello World" example by running:Ĭ:\Users\vha3\Pico\pico-examples> mkdir buildĬ:\Users\vha3\Pico\pico-examples> cd buildĬ:\Users\vha3\Pico\pico-examples\build> cmake -G "NMake Makefiles".For me, this was in the directory C:\Users\vha3\Pico\pico-examples Closing/re-opening will set the environment variable that we configured above.īuilding the Raspberry Pi company examples ¶ Open a new Command Prompt window by again navigating from the Windows Menu to Windows > Visual Studio 2019 > Developer Command Prompt.Close the current command prompt window.Set the path to the SDK by running the following:Ĭ:\Users\vha3\Pico > setx PICO_SDK_PATH ".\.\pico-sdk". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |