How to set up Raspberry Pi Pico

How to Set Up Raspberry Pi Pico

Getting Started with Raspberry Pi Pico : Set Up Raspberry Pi Pico

Raspberry Pi Pico, the new breakout board for RP2040 microcontroller from Raspberry Pi foundation. In this tutorial, we are going to set up a Pico board for programming. Raspberry Pi Pico RP2040 microcontroller support both MicroPython and c/c++.

Raspberry Pi Pico can be programmed and reprogrammed in two ways either using the SWD (Serial Wire Debug Port) or we can use the USB mass storage device mode. For beginners using Raspberry Pi Pico, we recommend you use the USB mass storage device mode for programming. Simply drag and drop a file onto the Pico which appears as a mass storage device in your computer.

How to set up the Raspberry Pi Pico

Use the following steps to program Raspberry Pi Pico using USB mode

  1. Depower the Pico Board
  2. Press and hold the BOOTSEL button on the Pico (Boot selection button) and then power the board by connecting to your computer using a micro USB cable. Release the BOOTSEL button once the drive RPI-RP2 appears on your computer


    BOOTSEL Raspberry Pi Pico

    micro USB Port Raspberry Pi Pico

  3. Drag and drop the "UF2" file and drop it onto the USB mass storage device.
  4. The disk will now write that file to flash and restart the Pico Board , after this pico disappear from USB devices.

Based on which programming language you are choosing to program the Pico board, step 4 changes.

Getting Started with MicroPython

Micropython Download UF2 File for Micropython

Getting Started with C/C++

Blink an LED Raspberry Pi Pico Download the Blink UF2

What is a UF2 file ?

UF2 is a file format designed by Microsoft that stands for USB Flashing Format. This format was designed for PXT (also known as Microsoft MakeCode) and allows for programming boards over the Mass Storage Class (removable drive).

The BOOTSEL is short for boot selection, which switches Pico between two start-up modes when it is first turned on. The USB port can be used to access the USB bootloader (BOOTSEL mode) stored in the RP2040 boot ROM. The UF2 file contains the MicroPython firmware, this is a small file that contains MicroPython for Pico.

When we drag and drop the MicroPython firmware file onto Pico, the firmware is flashed onto its internal storage. Pico switches out of the special mode you put it in with the BOOTSEL button, flashes the new firmware, and then loads it - now your Pico is running MicroPython.

Note: The USB boot code is stored in ROM on RP2040, so can not be accidentally overwritten

The next blog post is about programming Raspberry Pi Pico. Stay tuned for more blogs and tutorials on Raspberry Pi Pico.

Comments (946)
  • Hidayaturrahman - Oct 25, 2025

    https://gist.github.com/moppykossa8/95ab5e62db5707c20e22fe78bda20886
    https://gist.github.com/moppykossa8/9214e48e0404b0021cdd3783ae6598a3
    https://gist.github.com/moppykossa8/e45461f5eee329447e1d587c4b94d9d0

    https://gist.github.com/moppykossa8/48734aa2f3535fcc23e7908c8edecd5c
    https://gist.github.com/moppykossa8/f4dd89fe3c5f49979caeeb392638963e
    https://gist.github.com/moppykossa8/306bd7017b17a13e095784200d8b1a39

    https://gist.github.com/moppykossa8/dbb023ac3943d0294f7cf686fc3610d6
    https://gist.github.com/moppykossa8/527f9daa6a44158eddd7cd28355b70b7
    https://gist.github.com/moppykossa8/39e696e766b12ad9a0450d0f52541204
    .
    https://gist.github.com/moppykossa/12e3d72280342cf4852b6c5903962728
    https://gist.github.com/moppykossa/5634565d48a98adcc38be8bd6b74034a
    https://gist.github.com/moppykossa/a4455cc14b3a9dc985b66dd9f1c18789

    https://gist.github.com/moppykossa/7ba856a27495cc63fe13ba89f8dda670
    https://gist.github.com/moppykossa/6ef163690f96da6e7e6a43371bc1b83b
    https://gist.github.com/moppykossa/0c395ddb72617fd0547191c526a49213

    https://gist.github.com/moppykossa/4c7c8748c239639d9d670637442a6bc6
    https://gist.github.com/moppykossa/f39920c9035363fffee806a2d77bbb05

  • Hidayaturrahman - Oct 24, 2025

    https://gist.github.com/moppykossa8/95ab5e62db5707c20e22fe78bda20886
    https://gist.github.com/moppykossa8/9214e48e0404b0021cdd3783ae6598a3
    https://gist.github.com/moppykossa8/e45461f5eee329447e1d587c4b94d9d0

    https://gist.github.com/moppykossa8/48734aa2f3535fcc23e7908c8edecd5c
    https://gist.github.com/moppykossa8/f4dd89fe3c5f49979caeeb392638963e
    https://gist.github.com/moppykossa8/306bd7017b17a13e095784200d8b1a39

    https://gist.github.com/moppykossa8/dbb023ac3943d0294f7cf686fc3610d6
    https://gist.github.com/moppykossa8/527f9daa6a44158eddd7cd28355b70b7
    https://gist.github.com/moppykossa8/39e696e766b12ad9a0450d0f52541204
    .
    https://gist.github.com/moppykossa/12e3d72280342cf4852b6c5903962728
    https://gist.github.com/moppykossa/5634565d48a98adcc38be8bd6b74034a
    https://gist.github.com/moppykossa/a4455cc14b3a9dc985b66dd9f1c18789

    https://gist.github.com/moppykossa/7ba856a27495cc63fe13ba89f8dda670
    https://gist.github.com/moppykossa/6ef163690f96da6e7e6a43371bc1b83b
    https://gist.github.com/moppykossa/0c395ddb72617fd0547191c526a49213

    https://gist.github.com/moppykossa/4c7c8748c239639d9d670637442a6bc6
    https://gist.github.com/moppykossa/f39920c9035363fffee806a2d77bbb05
    https://gist.github.com/moppy

  • Hidayaturrahman - Oct 24, 2025

    https://laylo.com/laylo-jkuj6lb
    https://laylo.com/laylo-rkva01j
    https://laylo.com/laylo-user1sr
    https://laylo.com/laylo-emx7djz
    https://laylo.com/laylo-ggg9gkl
    https://laylo.com/laylo-pi42cq0
    https://laylo.com/laylo-tqpqchf
    https://laylo.com/laylo-qoosf5y
    https://laylo.com/laylo-beo4esv
    https://laylo.com/laylo-kglxp8r
    https://laylo.com/laylo-ywsiesj
    https://laylo.com/laylo-0rp9sol
    https://laylo.com/laylo-6tkvgdr
    https://laylo.com/laylo-lislmxy
    https://laylo.com/laylo-mlbnnps
    https://laylo.com/laylo-eazwvgr
    https://laylo.com/laylo-trzgj7b
    https://laylo.com/laylo-517uoih
    https://laylo.com/laylo-qzrbrrq
    https://laylo.com/laylo-7zokcjd
    https://laylo.com/laylo-skoayyr
    https://laylo.com/laylo-j1wc7mi
    https://laylo.com/laylo-spvnebr
    https://laylo.com/laylo-jypbtwj
    https://laylo.com/laylo-eginuhe
    https://laylo.com/laylo-c0hkrw2
    https://laylo.com/laylo-lzlvoe2

  • Hidayaturrahman - Oct 24, 2025

    https://laylo.com/laylo-ajpqndg
    https://laylo.com/laylo-wvcqrwb
    https://laylo.com/laylo-n6qevzg

    https://laylo.com/laylo-jl9lias
    https://laylo.com/laylo-1ajtkfo
    https://laylo.com/laylo-bylpobs

    https://laylo.com/laylo-p1hz2fv
    https://laylo.com/laylo-cujl7ls
    https://laylo.com/laylo-0cylwsh

    https://laylo.com/laylo-xkgjv85
    https://laylo.com/laylo-btk2ki4
    https://laylo.com/laylo-vqvf6lz

    https://laylo.com/laylo-nuerhwk
    https://laylo.com/laylo-knzfh2y
    https://laylo.com/laylo-zna9pje

    https://laylo.com/laylo-fzqncod
    https://laylo.com/laylo-zmamnc2
    https://laylo.com/laylo-kle1dgw

    https://laylo.com/laylo-4u0eyjb
    https://laylo.com/laylo-kkcpk5b
    https://laylo.com/laylo-rb2c5dy

  • Hidayaturrahman - Oct 23, 2025

    https://laylo.com/laylo-ajpqndg
    https://laylo.com/laylo-wvcqrwb
    https://laylo.com/laylo-n6qevzg

    https://laylo.com/laylo-jl9lias
    https://laylo.com/laylo-1ajtkfo
    https://laylo.com/laylo-bylpobs

    https://laylo.com/laylo-p1hz2fv
    https://laylo.com/laylo-cujl7ls
    https://laylo.com/laylo-0cylwsh

    https://laylo.com/laylo-xkgjv85
    https://laylo.com/laylo-btk2ki4
    https://laylo.com/laylo-vqvf6lz

    https://laylo.com/laylo-nuerhwk
    https://laylo.com/laylo-knzfh2y
    https://laylo.com/laylo-zna9pje

    https://laylo.com/laylo-fzqncod
    https://laylo.com/laylo-zmamnc2
    https://laylo.com/laylo-kle1dgw

    https://laylo.com/laylo-4u0eyjb
    https://laylo.com/laylo-kkcpk5b
    https://laylo.com/laylo-rb2c5dy

  • Hidayaturrahman - Oct 23, 2025

    https://laylo.com/laylo-jkuj6lb
    https://laylo.com/laylo-rkva01j
    https://laylo.com/laylo-user1sr
    https://laylo.com/laylo-emx7djz
    https://laylo.com/laylo-ggg9gkl
    https://laylo.com/laylo-pi42cq0
    https://laylo.com/laylo-tqpqchf
    https://laylo.com/laylo-qoosf5y
    https://laylo.com/laylo-beo4esv
    https://laylo.com/laylo-kglxp8r
    https://laylo.com/laylo-ywsiesj
    https://laylo.com/laylo-0rp9sol
    https://laylo.com/laylo-6tkvgdr
    https://laylo.com/laylo-lislmxy
    https://laylo.com/laylo-mlbnnps
    https://laylo.com/laylo-eazwvgr
    https://laylo.com/laylo-trzgj7b
    https://laylo.com/laylo-517uoih
    https://laylo.com/laylo-qzrbrrq
    https://laylo.com/laylo-7zokcjd
    https://laylo.com/laylo-skoayyr
    https://laylo.com/laylo-j1wc7mi
    https://laylo.com/laylo-spvnebr
    https://laylo.com/laylo-jypbtwj
    https://laylo.com/laylo-eginuhe
    https://laylo.com/laylo-c0hkrw2
    https://laylo.com/laylo-lzlvoe2

  • Hidayaturrahman - Oct 23, 2025

    https://www.gemtracks.com/OTelefoneNegro2
    https://gemtracks.com/OTelefoneNegro2filme
    https://gemtracks.com/OTelefoneNegro2completo
    https://gemtracks.com/TronAresfilme1
    https://gemtracks.com/TronAresdublado2
    https://gemtracks.com/TronArescompleto3
    https://gemtracks.com/ChainsawManfilme
    https://gemtracks.com/ChainsawMansdublado
    https://gemtracks.com/ChainsawMancompleto

    https://gemtracks.com/SempreTufilme1
    https://gemtracks.com/SempreTudublado2
    https://gemtracks.com/SempreTucompleto3
    https://gemtracks.com/TheSmashingMachinefilme
    https://gemtracks.com/TheSmashingMachinedublad
    https://gemtracks.com/TheSmashingMachinecomple
    https://gemtracks.com/OFantasmadefilme
    https://gemtracks.com/OFantasmadedublado
    https://gemtracks.com/OFantasmadecompleto
    https://gemtracks.com/AsAvesfilme
    https://gemtracks.com/AsAvesdublado
    https://gemtracks.com/AsAvescompleto
    https://gemtracks.com/heidifilme
    https://gemtracks.com/heididublado
    https://gemtracks.com/heidicompleto

  • Hidayaturrahman - Oct 23, 2025

    https://gist.github.com/dayately3/d65776361cae6d7fb8dd14ae94e3e074
    https://gist.github.com/dayately3/554a7312d305d49106432b6fa66212b6
    https://gist.github.com/dayately3/9e660c4982b3040d4b7b14932518b450
    https://gist.github.com/dayately3/4c93088f905de1282dd4916d317baa86
    https://gist.github.com/dayately3/25663aafecfd5dbaf55b7ed27c612fbb
    https://gist.github.com/dayately3/b11da7f79b5d693298ac11aa995c470b
    https://gist.github.com/dayately3/cb81e1be5990812a86cdcaaa279b9ccf
    https://gist.github.com/dayately3/ed321cc42564b2f16cccf54d18133984
    https://gist.github.com/dayately3/3efd546eddf47595c72f4fb905d1b73b
    https://gist.github.com/dayately3/1ecbd884a8fe0d626880b561a2050b8a
    https://gist.github.com/dayately3/39b4393e20df24ce85d03da2975f3405

  • Hidayaturrahman - Oct 22, 2025

    https://gemtracks.com/AsAvesfilme
    https://gemtracks.com/AsAvesdublado
    https://gemtracks.com/AsAvescompleto
    https://gemtracks.com/heidifilme
    https://gemtracks.com/heididublado
    https://gemtracks.com/heidicompleto

  • Hidayaturrahman - Oct 22, 2025

    https://gist.github.com/dayately3/d65776361cae6d7fb8dd14ae94e3e074
    https://gist.github.com/dayately3/554a7312d305d49106432b6fa66212b6
    https://gist.github.com/dayately3/9e660c4982b3040d4b7b14932518b450
    https://gist.github.com/dayately3/4c93088f905de1282dd4916d317baa86
    https://gist.github.com/dayately3/25663aafecfd5dbaf55b7ed27c612fbb
    https://gist.github.com/dayately3/b11da7f79b5d693298ac11aa995c470b
    https://gist.github.com/dayately3/cb81e1be5990812a86cdcaaa279b9ccf
    https://gist.github.com/dayately3/ed321cc42564b2f16cccf54d18133984
    https://gist.github.com/dayately3/3efd546eddf47595c72f4fb905d1b73b
    https://gist.github.com/dayately3/1ecbd884a8fe0d626880b561a2050b8a
    https://gist.github.com/dayately3/39b4393e20df24ce85d03da2975f3405

Showing 91 - 100 of 946 items

Leave a comment