Skip to main content

Device Configuration File

The device configuration file is used when adding a device to the Atym Hub. This document outlines the required and optional fields in the device configuration file.


Overview

The device configuration file is a YAML file that contains information about a device that will be added to the Atym Hub. When using the atym add device command with the -f flag, you can specify a device configuration file to add a new device. The format of the command is:

atym add device -f device.yaml
Note

The device file can be named anything as long as it is a YAML file with valid YAML content.


Example

Here's an example of a valid device configuration file:

---
deviceName: Mydevice
description: "My test device"
serialNumber: '1234567890'
target: armv8m.main
cpu: cortex-m33
enabled: true
aotEnabled: true
targetAbi: undefined
xip: false

This configuration will add a device with the name Mydevice, which is an STMicroelectronics B-U585I-IOT02A development board with a Cortex-M33 processor running the ARMv8-M architecture that has AOT enabled.


Required Fields

The following fields are required in the device configuration file:

FieldTypeDescriptionAccepted Values
cpustringThe CPU variant of your deviceSee available CPU types
deviceNamestringA human-readable name for the device-
targetstringThe device architecture typeSee available Target types
serialNumberstringThe serial number of the device-

Optional Fields

The following fields are optional in the device configuration file:

FieldTypeDescriptionDefaultAccepted Values
aotEnabledbooleanEnable Ahead-of-Time compilation for the device (See AOT Compilation for details)falsetrue/false
descriptionstringA description of the deviceNone-
enabledbooleanA boolean flag indicating whether the device is enabledtruetrue/false
targetAbistringThe Application Binary Interface for the target platform (required when AOT is enabled)NoneSee available TargetAbi types
xipbooleanEnable Execute-in-Place for the devicefalsetrue/false

See Also