![Telit Wireless Solutions GainSpan GS2101M User Manual Download Page 38](http://html1.mh-extra.com/html/telit-wireless-solutions/gainspan-gs2101m/gainspan-gs2101m_user-manual_1083629038.webp)
GS2101M Low Power Wi-Fi Module Hardware User Guide
1VV0301395 Rev 3.0
Page
38
of
53
2017-11-13
3.1.3.
GS2101M Program and Code Restore Options
Following table describes the options available for device program mode and code
restore capabilities. The respective GPIO pins are sampled at reset by device and
depending on the values seen on these pins goes into the appropriate mode. The code
for the GS2101M resides on the internal flash of the module and up to two back-up
copies could be stored in flash. If a software designer wants to restore the execution
code to one of the backup copy, it can be accomplished by asserting the appropriate GPIO
pins as shown in the table below during power up or reset.
Boot
Control
Program
Mode
(GPIO 31)
Program
Select/Previous
Restore
(GPIO 25)
Interfaces for Program Load
(see Note 1)
0
0
Normal boot
0
1
Previous Code Restore. Restores the prior
code revision by invalidating the present
code image. Will NOT invalidate the last
remaining image.
1
0
Program Mode: UART0 @ 115.2Kbaud;
nothing on
GPIO15-18; SPI0 on SDIO pins. Note: this
is the default you get if you don’t pull the
Program Select pin high.
1
1
Program Mode using: UART0
@921.6Kbaud; SPI0 on GPIO15-18. Note:
GPIO15-18 are only available on GS2000
SoC, and not on modules.
Tab. 7 GS2101M Pin Program and Code Restore
Note:
1. In Run Mode, boot ROM leaves all GPIO pins as input with pull resistor
enabled until the flash code sets them otherwise. In Program Mode,
only the pins required for the Program Mode specified interfaces are
set to non-GPIO mode