Skip to content

SoCs

Each SoC supported by CodeFusion Studio is associated with an SoC Data Model.

This data model is a JSON file that contains information on the package, available memory, config settings and register details, and other essential information required to enable the graphical config tools and code generation functionality.

The socs command allows you to interact with the SoC data models known to cfsutil.

Export

cfsutil socs export <SOCNAME> [-p <package>] [-f json] [-i <value>] [-m] [-o <value>] [-s <value>...] [--version <version>]

Outputs the SoC data model in JSON format for the specified SoC.

Switch Effect
SOCNAME Required. The name of the SoC to export, not including package.
-f, --format Output format: text (default) or json. JSON output uses the JSON output envelope. Files written with -o don't use the envelope.
-i <val> The number of spaces for JSON indentation (use $'\t' for tabs). Default is 2 spaces. Applies only to output without -f json and to files written with -o.
-m Minify the JSON output. Applies only to output without -f json and to files written with -o.
-o <value> Output destination (stdio or a file path). Default is stdio.
-p <package> Package name of the SoC to export. Required if the SoC has more than one package.
-s <path> Specifies additional search paths for SoC data models. Refer to DEVELOPMENT.md in the CodeFusion Studio GitHub repository for instructions on generating a .cfsdatamodels index file.
--version <version> Optional data model version (defaults to latest if not specified).

Deprecated flag

The -n, --name flag is deprecated. Use the SOCNAME positional argument instead, and the -p, --package flag if the SoC has more than one package.

Info

cfsutil socs info <SOC> [--format text|json] [-b] [-c] [-d] [-p]

Display detailed information about a specific SoC from the catalog. The <SOC> argument is required; all other switches are optional.

Switch Effect
-b, --boards Display supported boards for the SoC.
-c, --cores Display supported cores for the SoC.
-d, --docs Display documentation links for the SoC.
-p, --packages Display supported packages for the SoC.
-f, --format Output format: text (default) or json. JSON output uses the JSON output envelope.

Note

Aliases: cfsutil soc info

Example

cfsutil socs info MAX32660

Show supported boards

cfsutil socs info MAX32660 --boards

Show cores and packages

cfsutil socs info MAX32660 --cores --packages

Output as JSON

cfsutil socs info MAX32660 --docs --format json

List

cfsutil socs list [-f text|json] [-v | -q] [-l] [-s <value>...]

Provide a list of available SoC data models.

Switch Effect
-f, --format Output format: text (default) or json. JSON output uses the JSON output envelope. The shape of data depends on the other switches, as described in the following table.
-l, --legacy Use legacy format for output.
-s <path> Specifies additional search paths for SoC data models. Refer to DEVELOPMENT.md in the CodeFusion Studio GitHub repository for instructions on generating a .cfsdatamodels index file.
-v Show additional details for each SoC data model. Mutually exclusive with -q.
-q Suppress non-error output, including warnings. Mutually exclusive with -v.

Example

cfsutil socs list -s /path/to/codefusion-studio-repo/packages/cfs-data-models/socs/.cfsdatamodels -f json

With -f json, the contents of data depend on the switches you use:

Switches Contents of data
None An object keyed by SoC name. Each value is the list of packages for that SoC.
-v { "socs": [...] }. Each entry has Name, Package, Version, Timestamp, Description, Schema, and AICores.
-l { "socs": [...] }. Each entry is a <soc>-<package> name.
-l -v An object keyed by <soc>-<package>. Each value has Name, Version, Timestamp, Description, and Schema.

data.socs is present only when you use exactly one of -v and -l.