User Tools


Link to this comparison view

2.0:configuration_and_setup [2015/09/14 00:10] (current)
Line 1: Line 1:
 +====== Configuration and Setup ======
 +A number of flexible and easy-to-use options are available to set up a module running TruConnect. ​
 +
 +===== Physical Terminal =====
 +Perhaps the most common option used for general setup (and also the most convenient when prototyping) is to use a terminal application and serial interface such as a UART. See [[getting_started|Getting Started]].
 +
 +===== Variable Configuration =====
 +
 +You can save the current variables to flash, so that they persist after reboot, with the [[commands#​save|save]] command. ​
 +ONCE ONLY, you can save a configuration as a factory reset default to OTP memory, with the command:
 +
 +<​code>​save factory <​BD_ADDR></​code>​
 +
 +The ''<​BD_ADDR>''​ argument is required to ensure against accidental use of the command. To find the ''<​BD_ADDR>'',​ use the ''​get bl a''​ command.
 +
 +===== Factory Reset =====
 +
 +Once you have used the ''​save factory''​ command to save a particular configuration,​ using the [[commands#​fac]] command results in loading that configuration. ​
 +If you have not used ''​save factory'',​ the variables return to their original default settings. ​
 +
 +To return all values to their factory configuration,​ use the [[commands#​fac|fac]] command:
 +<​code>​fac <​BD_ADDR></​code>​
 +
 +The [[commands#​fac]] command requires the <​BD_ADDR>​ argument in order to avoid accidental reset. ​
 +
 +You can also perform a factory reset by asserting the pin assigned to the GPIO function ''​factory''​ for 10 seconds through a module reset. ​
 +The factory reset pin may be moved to a different pin, but it may NOT be de-assigned.
 +On the Wahoo evaluation board, the ''​factory''​ reset pin defaults to GPIO 6 (Button 1). 
 +
 +===== GPIO Configuration =====
 +
 +GPIOs are configured with the commands [[commands#​gfu|gfu]],​ [[commands#​gdi]],​ [[commands#​gse]],​ and [[commands#​gge]]. ​
 +GPIO configuration and initialization is also saved by the [[commands#​save|save]] command.
 +
 +GPIO configuration and usage is available using the [[variables#​gp_u|get gp u]] command sequence.
 +
 +See [[peripherals#​GPIOs|Peripherals,​ GPIOs]].
 +
 +
 +