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 /config directory.

Metadata

Additional properties defined in YAML.

Step 1. Validate a Project#

Run slc validate-project to validate the selected project and its dependencies without generating output.

slc validate-project -p app.slcp

Step 2. Examine Project Components#

Run the following command to display information about a component.

slc examine <component-id>

Step 3. Validate a Component Definition#

Run the following command to validate a component definition.

slc validate my_component.slcc

Step 4. Inspect Installed Packages#

Run slt locate to display installed-package metadata. Use slt list when you want to see packages available for installation.

slt locate