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 one-thousand words, this section is priceless. These screenshots give some examples of what to expect while using the Raspberry Pi Imager. Go ahead and scroll past if this isn't your first time using Raspberry Pi Imager.

Imager App on Windows

Figure 1: Finding the App (Windows OS example)

Imager Start-Up

Figure 2: Raspberry Pi Imager 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

(TODO: Get screenshot.)

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

Clone this wiki locally