A VS Code extension for programming and debugging MSPM0 microcontroller boards.
What Does This Do?
This extension lets you:
Build your code
Upload (flash) programs to your board
Debug your programs
View memory and registers
All from within VS Code - no external tools needed.
Installation
Download the .vsix file from releases
Open VS Code
Go to Extensions (click the blocks icon on the left, or press Ctrl+Shift+X)
Click the "..." menu at the top → "Install from VSIX..."
Select the downloaded file
First Time Setup
When you first use the extension:
The extension will download and install the required tools automatically
This takes a few minutes
Once done, you're ready to go!
You can check setup status in the "Port11: Setup" panel on the left sidebar.
How to Use
1. Connect Your Board
Plug your MSPM0 board into your computer via USB
The extension will automatically detect it
If not detected, click "Boards" panel and click "Detect"
2. Open Your Project
Open a folder containing your .c source files
The extension recognizes MSPM0 projects automatically
3. Build Your Code
Option A: Click the "Build" button in the status bar at the bottom
Option B: Press Ctrl+Shift+BOption C: Open Command Palette (Ctrl+Shift+P) → type "Port11: Build"
The extension compiles your code. Any errors will show in the Problems panel.
4. Upload to Board (Flash)
After building successfully:
Click the "Flash" button in the status bar
Wait for the upload to complete
Your program is now running on the board!
5. Debug Your Program
Start Debugging:
Click the "Debug" button in the status bar
Your program will pause at the start
While Debugging:
Halt - Pause the program
Resume - Continue running
Step - Execute one instruction at a time
View Information:
Data View - See register values and variables
Breakpoints - Manage breakpoints
Call Stack - See function call history
Console - View debug messages
6. Setting Breakpoints
Open a .c file
Click to the left of a line number (a red dot appears)
Run debug - program will pause at that line
Use "Resume" to continue to the next breakpoint
Common Issues
"Board not detected"
Make sure your board is plugged in via USB
Try a different USB cable or port
Click "Detect" in the Boards panel
"Build failed"
Check the Problems panel for specific errors
Make sure your .c files are in the open folder
Try running setup again from the Setup panel
"Flash failed"
Make sure your board is connected
Build your project first (Flash button only works after a successful build)
Check that no other program is using the board
"Setup taking too long"
The first-time setup downloads large files (this is normal)
Make sure you have a stable internet connection
Check that you have at least 2GB of free disk space
"Debug not working"
Flash your program to the board first
Make sure the board is connected
Try clicking "Halt" first, then look at the Data View
Tips
Save your work often - Build and flash frequently to catch errors early
Use breakpoints - They help you see what's happening step-by-step
Check the Console - It shows detailed information about what the extension is doing
Status bar buttons - The quickest way to Build, Flash, and Debug