Introduction

The goal of this lab is to get you set up with the NUCLEO board we will be using, including installing software and debugging programs using Mbed Studio. By the end of the lab, you should be able to create your own programs and build them with or without the debugger. This lab will not be graded, but completing it will be necessary to complete future lab assignments.

Equipment Needed

Be sure to pick up the following equipment for this lab:

Installing Mbed Studio

<aside> 💡 You only need to install Mbed Studio if you are using your own computer. It should be installed on the lab computers already.

</aside>

  1. Go to the Mbed Studio website, download the application for Windows, Mac, or Linux, and install it.
  2. Launch Mbed Studio.
  3. If you don’t want to use the default workspace (it is in your home user folder in a folder called “Mbed Programs” by default), create a new folder and open it (File > Open Workspace).

Installing Git(Hub Desktop) and Downloading Lab 0

<aside> 💡 You only need to install Git(Hub Desktop) if you are using your own computer. It should be installed on the lab computers already.

</aside>

Code used in the course will be downloaded from and submitted on the Swarthmore GitHub server. To get started, you need to install software on your computer that uses git. You have two main options:

  1. Mac/linux users with prior git experience: Follow the Swarthmore CS git tutorials to set up git. Then, clone your lab repository (lab0-yourusername, e.g. lab0-mdelano1) using SSH keys and the command line interface. Be sure to clone to the local path that is the same directory as your workspace folder (for me, this was /Users/mdelano1/Mbed Programs/).
  2. Windows users, people new to git, or who just love GUIs: Download Github Desktop. Login to Github Enterprise using github.swarthmore.edu and your Swarthmore credentials. After you login, select the lab0-yourusername repository and clone it (for example, mine would be lab0-mdelano1). (If you don’t see a clone option, click File > Clone repository). Be sure to choose the local path that is the same directory as your workspace folder (for me, this was /Users/mdelano1/Mbed Programs/). If you don’t see a repository with your name on it, please check with Prof. Delano and they will create one for you.

Opening Your Repo in Mbed Studio

After you have your lab cloned to your local computer, you need to confirm that it is the active program. Open Mbed studio. A list of programs should appear on the left sidebar. Right now, it will only have your lab0 repository. If it isn’t in bold, right click the folder and select “Set Active Program.” The active program will always be in bold in the left sidebar.

Screen Shot 2023-01-06 at 2.38.51 PM.png