Digi Embedded Yocto provides a command line tool, mca_config_tool, to configure internal variables of the Micro Controller Assist (MCA).

You can use the following application options:

mca_config_tool --help
mca_config_tool --factory_reset
mca_config_tool --pwroff_boot_duration[=N]
mca_config_tool --reset_delay[=N]
mca_config_tool --boot_mode[=MODE]
mca_config_tool --rtc_time_comp[=N]

The following table describes each command line option:

Command line option Action

--help

Print help message (the information on this table)

--factory_reset

Perform a NVRAM reset to factory default settings.

--pwroff_boot_duration[=N]

Get/set the time in ms that the PMIC_ON_REQUEST line is de-asserted during system boot (register PWROFF_BOOT_DURATION)

--reset_delay[=N]

Get/set the delay in ms that the MPU reset line will be asserted after the PMIC power-on event, at system boot

--boot_mode[=MODE]

Configure the SOM boot mode by selecting between ‘W4PK’ (wait for power key) or ‘BOP’ (boot on power). If W4PK is selected, the system doesn’t boot until the MCA PWR_IO line is asserted low. This line is commonly connected to the power button. If BOP is selected, the SOM automatically boots as soon as power is applied

--rtc_time_comp[=N]

Get/set the RTC’s time compensation value in Hertz. The valid range of this value is from 32641.0 to 32896.0 (both inclusive) in integer or floating point format. Set this parameter to the measured frequency of the MCA’s 32 kHz signal to enable its time compensation system. The default value of this setting is 32768.0 Hz, which is the expected frequency of the 32 kHz signal.

Get settings

You can read settings values from NVRAM. For example, to show the time that the MCA spends asserting the reset line, use the following command:

~# mca_config_tool --reset_delay
Current Reset delay is 1 ms

Modify settings

You can modify settings and save the values to NVRAM. For example, to set a new value for the time that the MCA spends asserting the reset line, use the following command:

~# mca_config_tool --reset_delay=50
Configuration saved.