Non-volatile I/O Config

The following page provides an example of setting the current I/O configuration to persist across reboots.

Setup

So you’ve reviewed the I/O capabilities (/ list|io_caps), and decided which I/O should be configured as which protocol (/ set|io_type_cfg(…) or $ set_io_type_cfg(…, …)).

You now want this configuration to persist across reboot cycles. This task is straightforward, simply:

Enter command mode.

$ command

Save the current I/O configuration as default

/ set|start_on_boot_io_cfg

Power cycle the device unplug-plug, press the reset button, or run either of the following:

/ run|reboot
/ exit
$ reboot()

Enter command mode.

$ cmd

Confirm the I/O configuration has persisted:

/ list|io_type_cfg

The same will apply to any related configuration (UART baud, SPI clock frequency, etc).

References

Command Mode

API