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

MCA configuration tool syntax
# mca_config_tool --help
Command line MCA configuration tool

Copyright(c) Digi International Inc.

Version: 1.27

--help                         Show this message.
--factory_reset                Reset NVRAM to factory default settings.
--pwroff_boot_duration[=N]     Time in ms that the PMIC_ON_REQUEST line is de-asserted during the system boot.
                               If N value is not provided returns the current power off boot duration (max = 255).
--reset_delay[=N]              Time in ms that the MPU reset line will be asserted after the PMIC
                               power on event, at system boot.
                               If N value is not provided returns the current reset delay (max = 255).
--boot_mode[=MODE]             Boot mode configuration, where MODE is W4PK, BOP or SMARCBP (for wait for powerkey,
                               boot on power or smarc bypass).
--rtc_time_comp[=N]            RTC time compensation value, where N is a frequency in Hz between 32641.0 and 32896.0
                               in integer or floating point format. If the 32 kHz signal of the MCA differs from the
                               expected 32768 Hz value, this setting can be set to the measured value to adjust the
                               RTC automatically and avoid discrepancies.
                               If N is not provided, returns the current frequency that the time compensation mechanism
                               is configured for (default = 32768.0)
--pwrio_cfg[=CFG]              Power IO line configuration, where CFG can be
                               - STD: for standard power button
                               - RESET: for system reset on key press, after RTC wakeup
--io_reset[=CFG]               IO reset configuration, where CFG is a semi-colon separated list of IOs in the format:
                               "<io>:<mode>:<active>:<debounce>"
                               Where:
                                 <io>         is the IO number
                                 <mode>       [gpio|reset] is the configured mode
                                 <active>     [high|low|rising|falling] is the active level of the reset
                                 <debounce>   is the debounce filter in ms (optional)

                               Example:
                               --io_reset="0:reset:high:100;3:gpio"

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.