Validate a Project#
Objective#
Verify that the project components and their dependencies are correctly configured.
Components are the building blocks of Silicon Labs software projects. Each component is defined in a Silicon Labs Component Configuration (.slcc) file. Components are combined to form an application. Each component defines the source files, application programming interfaces (APIs), configuration options, and dependencies required by the project.
Component Structure#
Each .slcc file defines the following elements:
Element | Description |
|---|---|
ID | Unique identifier for the component. |
Sources | Source and header files included by the component. |
Provided APIs | APIs and features that the component provides to other components. |
Required APIs | APIs and features that the component requires from other components. |
Configuration | Configurable parameters stored in the |
Metadata | Additional properties defined in YAML. |
Step 1. Examine Project Components#
Run the following command to display information about a component.
slc examine <component-id>
Step 2. Validate a Component Definition#
Run the following command to validate a component definition.
slc validate my_component.slcc
Step 3. List Installed Packages#
Run the following command to list the installed packages.
slt list