|
This repo contains simple peripheral examples based on emlib in Simplicity SDK for Series 2 devices.
| Board ID | Device |
|---|---|
| BRD4181A | EFR32MG21 |
| BRD4184B | EFR32BG22 |
| BRD4182A | EFR32MG22 |
| BRD4204D | EFR32ZG23 |
| BRD4186C | EFR32MG24 |
| BRD4270B | EFR32FG25 |
| BRD4277A | EFR32FG2D |
| BRD4117A | EFR32MG26 |
| BRD4111A | EFR32BG27 |
| BRD2602A | EFR32BG27 |
| BRD4194A | EFR32MG27 |
| BRD4400C | EFR32ZG28 |
| BRD4420A | EFR32BG29 |
| BRD4412A | EFR32MG29 |
| Board ID | Device |
|---|---|
| BRD4407A | SiMG301 |
- A compatible Silicon Labs Starter Kit
- Simplicity Studio 6
- Simplicity SDK (match the SDK version noted in the commit tag, if cloning directly)
There are two ways to obtain the peripheral examples:
The peripheral examples are available as an installable extension directly within Simplicity Installer/SLT, making this the easiest way to get started (no repository cloning required).
The version of the peripheral examples installed through Simplicity Studio is automatically aligned with your installed Simplicity SDK.
- Download Simplicity Installer for your OS
- Open Simplicity Installer
- Click on Installation Wizard
- Click Technology Install
- Select Peripheral Examples under Optional Packages
- Click NEXT
- Accept the Terms of Use and License Agreement
- Click INSTALL to begin installation
- Download Silicon Labs Tool (SLT) for your OS
- Extract the archive and add the directory to your system
PATH - Install the SDK (this will also make associated extensions available):
slt install simplicity-sdk
⚠️ Important:
You must clone or check out the repository tag/commit that matches your Simplicity SDK version to ensure compatibility.
git clone https://github.com/SiliconLabsSoftware/peripheral_examples.git
cd peripheral_examples
git checkout <sdk-matching-tag>Then install it as an SDK extension:
- Open Simplicity Studio 6 → Settings
- Navigate to SDKs
- Select your installed Simplicity SDK
- Click Add Extension
- Browse to the cloned repository folder
- Select the extension and click Finish
- When prompted, click Trust
After successful installation:
- Restart Simplicity Studio to ensure the extension is properly loaded.
- Verify Installation, open settings → SDKs and confirm that Peripheral Examples appears as extension under SDK
- Explore peripheral examples that are available in the Example Projects & Demos view when creating a new project.
- Launch Simplicity Studio 6
- Open the Devices view by clicking the DEVICES button
- Select your development board:
- from the CONNECTED section (if hardware is attached), or
- from the VIRTUAL section (if no hardware is connected)
- To locate your device, use:
- the search bar, or
- filters such as Technology, Device Type, or Board
- Click on your selected device to open its device view
- In the device view, click Create New Project
- In the Example Projects & Demos page:
- browse or filter available examples
- select an example
- click CREATE
- Complete project configuration and click Finish to import the example into your workspace
These peripheral examples use the peripheral_examples_evaluation_templates.xml file along with a custom component that provides dedicated Pin Configuration headers to support multiple development boards. To add support for a new board:
Modify the partCompatibility and boardCompatibility entries for the example inside: peripheral_examples_evaluation_templates.xml
Create a new pin_config.h file and a new peripheral_config.h file for your board and place it under the appropriate directory, following the structure used by existing boards
Example: components/series2/EFR32MG21_BRD4181A/pin_config.h
Append the new configuration path.
For example:
- override:
component: "%extension-peripheral_examples%silabs_bsp"
- path: components/series2/EFR32MG21_BRD4181A/pin_config.h
condition: [brd4181a]- Open settings → SDKs
- Select the SDK version used and click Refresh
All examples in this repo is are considered EVALUATION QUALITY, meaning this code has been minimally tested to ensure that it builds with the specified dependencies and is suitable as a demonstration for evaluation purposes only. This code will be maintained at the sole discretion of Silicon Labs.
To report bugs in the peripheral example projects, please create a new "Issue" in the "Issues" section of this repo (https://github.com/SiliconLabsSoftware/peripheral_examples). Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Silicon Labs engineers will address bugs and push them to the public repository periodically.
Questions and comments related to the peripheral examples should be made by creating a new "Issue" in the "Issues" section of this repo.