Explore and open MSDK examples
The MSDK provides example projects for each supported microcontroller. These examples demonstrate peripheral APIs, middleware, and other libraries, serving as references and starting points for your own applications.
Note
If you plan to migrate a project to System Planner, follow the steps in migrate a project to System Planner
Open an example project
- Click the CodeFusion Studio icon
in the VS Code activity bar. -
Click Browse MSDK Examples.
Tip
You can also open the Command Palette (
Ctrl+Shift+P/⇧⌘Pon macOS) and type Browse MSDK Examples to launch the same dialog. -
In the dialog that appears, choose your target SoC.
- Browse or search for the desired example.
- Click Select Example.
- Choose a destination folder to create a local copy of the project.
- A new VS Code window opens. 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.
Note
CodeFusion Studio automatically locates your installed MSDKs and examples. If the MSDK was installed using the Package Manager, examples are loaded from the Package Manager package. If no MSDK package exists, it defaults to the MSDK folder bundled with the installer (SDK/MAX/Examples).
Open multiple examples together (optional)
You can open multiple example projects in a single workspace—for example, to compare code or build and run multi-core projects.
Duplicate the example folder
Warning
We strongly recommend copying the example projects before modifying any files to preserve the original examples.
- Open File Explorer.
- Depending on how you installed the MSDK, examples are located in one of the following directories. Click Browse MSDK Examples to determine the correct location.
- Installer:
C:\Analog\CFS\<version>\SDK\MAX\Examples - Package Manager (Conan):
- Linux:
/home/<username>/.local/share/com.analog.cfs/packages/conan/p/msdk<id>/p/Examples - macOS:
/Users/<username>/Library/Preferences/com.analog.cfs/packages/conan/p/msdk<id>/p/Examples - Windows:
C:\Users\<username>\AppData\Local\com.analog.cfs\Data\packages\conan\p\msdk<id>\p\Examples
- Linux:
- Copy the Examples folders to a writable location.
Open the examples in VS Code
- Launch VS Code.
- Click the Explorer icon in the activity bar.
-
Click Open Folder.
Tip
You can also select File > Open Folder from the top menu.
-
Navigate to the location where you saved the examples.
-
Select two example projects to open.
Warning
You must select two distinct projects, each containing a makefile at the highest level in their respective folder structure.
-
If prompted with Do you trust the authors of the files in this workspace?, click Yes, I trust the authors.
- 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 projects are ready by expanding each
.vscodefolder and verifying thatsettings.jsoncontains valid project settings.






