> 22.5 | AT^SFDL Enter Firmware Download Mode

> The AT^SFDL command allows the application manufacturer to download TC65 firmware into the module by starting the download process from the host application or a customer-designed download program. The download can be done over the serial interfaces ASC0 or ASC1 or the USB interface.
> For this purpose, the TC65 firmware update file must be available in the format *.USF. The file can be requested from Siemens. The firmware file consists of records to be transferred one by one from the host application to the module.
> This manual only describes the handling of the AT^SFDL command. All technical requirements and steps to prepare the host application for this download solution can be found in the Application Note "Updating Firmware". An example for developing an appropriate download program is included.
> The AT^SFDL write command causes the module to reset and enter the firmware update mode. This will be used to read previous downloaded firmware data.
> The AT^SFDL execute command causes the module to reset and enter the firmware download mode (this may take some milliseconds). After entering the download mode the module sends the start pattern HEX 0x01 ("ANSWER_OK") to the application to indicate its ready state. Next, the application shall start to send the records of the firmware file. Each record received on the module is acknowledged to the host application. Once all records are successfully received, the module shuts down automatically.
> If the module is switched on although it has no valid firmware installed, it waits 60s for the AT^SFDL command (or for another download method to be started). If neither the AT^SFDL command nor equivalent characters from another download method are received the module switches off after a 60s timeout.
> If a valid firmware is still installed, but the AT^SFDL command is issued without sending any firmware afterwards the module will stay in ready state. In this case it must be switched off.
> Syntax

> Test Command AT^SFDL=?
> Response(s)
> ^SFDL:(list of supported <mode>s)
> OK

> Exec Command AT^SFDL
> Response(s)
> OK
> 0x01

> Write Command AT^SFDL=<mode>
> Response(s)
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> SIEMENS |  | - |  | + | + | + | - | - | - |  |  | - | + | +

> Parameter Description

> <mode>(num)

> 1
> OTA (Firmware update Over-The-Air).
> Sets SPI mode to replace the module's existing firmware with a new firmware from a dedicated SPI flash memory. The new firmware is initially written to the SPI flash via GSM/GPRS, i.e., over-the-air. See AT^SSPI for further detail on the SPI mode. More information on over-the-air firmware update can be found in [12].