Open and migrate example
The MSDK contains examples for each microcontroller that demonstrate the usage of peripheral APIs and other supported libraries. These examples are provided as reference.
Note
If you are moving a project to System Planner, follow the steps to migrate a project to System Planner
Duplicate the example folder
Warning
We strongly recommend copying the example projects before modifying any files to preserve the original examples.
- Open File Explorer.
- Navigate to your installation directory: SDK>MAX>Examples
- Copy the Examples folder to the desired location.
- You can now open an example project in a single folder workspace or a multi folder workspace.
Open in a single folder workspace
- Launch an instance of VS Code.
- Click on the Explorer icon in the VS Code activity bar.
-
Click Open Folder.
Tip
Alternatively, click File > Open Folder from the top menu.
-
Navigate to the location where you saved the example projects.
- Select the example project to open.
- If you receive the notification Do you trust the authors of the files in this workspace?, click Yes, I trust the authors to continue.
- If your existing project has not been configured as a CodeFusion Studio workspace, wait for the Configuring dialog box to complete before proceeding.
- Confirm the project is ready by expanding the
.vscode
folder and verifying that thesettings.json
file contains the correct project settings.
Open in a multi folder workspace
- Launch an instance of VS Code.
- Click on the Explorer icon in the VS Code activity bar.
-
Click Open Folder.
Tip
Alternatively, click File > Open Folder from the top menu.
-
Navigate to the location where you saved the examples.
- Select two example projects to open.
-
If you receive the notification Do you trust the authors of the files in this workspace?, click Yes, I trust the authors to continue.
Warning
You must select two distinct projects, each containing a makefile at the highest level in their respective folder structure.
-
If your existing project has not been configured as a CodeFusion Studio workspace, wait for the Configuring dialog box to complete before proceeding.
- Confirm the project is ready by expanding the
.vscode
folder and verifying that thesettings.json
file contains the correct project settings.