Skip to content

Setting Up Raspberry Pi OS for MPRemote Visual Studio Code

David Horton edited this page May 24, 2024 · 24 revisions

This page details the steps for setting up a Raspberry Pi board for MicroPython development using Visual Studio Code and the MPRemote VS Code extension. Some knowledge of Raspberry Pi is assumed. The steps are geared toward reusing older generations of donated Raspberry Pi hardware. The procedure is tested on a 32-bit Raspberry Pi 2 with 1G of RAM.

This step will require the following:

  • A PC or Mac with a Micro SD card slot (or appropriate adapter.)
  • Access to the internet for downloading.

Installing and Running the Raspberry Pi Imager

You may skip this step if this isn't the first time you're flashing a Micro SD card with Raspberry Pi OS.

  1. Visit https://www.raspberrypi.com/software/ to download the version of the tool for your operating system.
  2. Install the tool by double-clicking the installer file.
  3. To run the tool, find Raspberry Pi Imager in the list of installed applications for your PC.

Understanding the Procedure

If this is your first time using Raspberry Pi Imager, learn more about it by reading and watching the short video on the Raspberry Pi Imager announcement page. Keep in mind there have been improvements made to the tool since the vdeo, so things will look slightly different. This differences will be highlighted in the procedure below.

Selecting the Appropriate Options for the Raspberry Pi Imager

There are three things you must choose to create a Micro SD card for use with your Raspberry Pi. There is also a fourth grouping of options that will pre-configure the system for you.

  1. Choose the Raspberry Pi device. Because there are several generations of Raspberry Pi, it's important to get this right.
  2. Choose an Operating System. In all cases, you will want Raspberry Pi OS. 32-bit or 64-bit depends on the generation of Raspberry Pi hardware.
  3. Choose the storage device. This is the easiest step. It is the Micro SD card on your system and is often the only device in the list.
  4. Choose additional configuration options. Press CTRL + SHIFT + X to bring up the super secret options page. Visit each tab and fill in as appropriate.

Raspberry Pi Imager Screenshots

If a picture is worth a thousand words, this section is money in the bank. These screenshots give some examples of what to expect while using the Raspberry Pi Imager. Choices shown are for the older Raspberry Pi 2 hardware. If you're using a 2nd generation Pi 3 or later, you'll want to select a 64-bit OS.

If this isn't your first time using Raspberry Pi Imager, go ahead and scroll past the pictures to the section entitled Booting Your Pi.

Imager App on Windows

Figure 1: Finding the app (Windows OS example)


Imager Start-Up

Figure 2: Raspberry Pi Imager started up and awaiting your choices


Imager Choose Device

Figure 3: Choosing a device of Raspberry Pi 2


Imager Choose OS

Figure 4: Choosing a 32-bit OS for Raspbery Pi 2


Imager Choose Storage

Figure 5: Choosing the Micro SD card


Imager OS Customization General

Figure 6: The General tab of customization (CTRL + SHIFT + X)


Imager OS Customization Services

Figure 7: The Services tab for enabling Secure Shell (SSH) connections if desired


Imager OS Customization Options Leave Default

Figure 8: Default options showing the Micro SD will be ejected when writing is finished


Imager Writing

Figure 9: Raspberry Pi Imager writing after all options have been selected

Booting Your Raspberry Pi

After writing the Raspberry Pi OS image, you can remove the Micro SD card from your PC and insert it into the slot on the Raspberry Pi.

  1. Ensure the Raspberry Pi is not plugged into power.
  2. Insert the Micro SD card into the slot taking care to orient it the correct way.
  3. Attach an HDMI monitor with the appropriate cable for your device (standard or micro HDMI).
  4. Plug in an appropriate power supply for your device (Official Raspberry Pi or Canakit power supplies are a good choice.)
  5. Watch the monitor for signs of life.

Booting could take several minutes the first time. If you see a Raspberry Pi Desktop logo on the monitor, things are moving in the right direction. Just be patient.

Clone this wiki locally