Updating the SPWF04SA Wi-Fi Module Firmware
Before updating the Wi-Fi firmware, erase all applications on the host board to prevent them from interfering with the upgrade process and to prevent possible damage to the host processor.
When the Wi-Fi module starts, it sends a PowerOn message which tells you what firmware version is installed. For example,
PowerOn 171117-0328fe3-SPWF04S. In this case the firmware is dated 17 November 2017.
To upgrade the Wi-Fi module's firmware, you must first download and install the following:
You will also need:
A USB to serial adapter. We were successful using the FTDI TTL-232R-3V3 Cable. Some older USB to serial adapters will not work.
Some jumper wires.
For the USB to serial adapter you can use the Gadgeteer USB-Serial Module with a Gadgeteer Breadboard. Connect the module socket to the breadboard socket using a ribbon cable. You must also power the breadboard by connecting GND and 3.3V from the FEZ to the corresponding breadboard connectors.
Erase the Host Firmware
Before updating the Wi-Fi module firmware, you must erase the firmware on the host board or SoM. This is accomplished using terminal software while the board is in bootloader mode. The instructions are very similar to the instructions for manually loading firmware.
- Connect the board to your computer's USB port.
- Put your board in bootloader mode. Each product has a specific way to enter the boot loader.
- Open any terminal software, for example Tera Term.
- Select serial and pick the COM port associated with your board (if unsure, check Device Manager).
Eand then enter to start the erasing procedure.
Yto confirm, then enter.
Connect the Wi-Fi Module
Before updating the Wi-Fi firmware, you must first connect the following pins (Pictures show FEZ board. See table below for other devices):
Connect BOOT0 of the Wi-Fi module to a 3.3 volt source.
Connect the GND pin of the USB to serial adapter to a GND pin on the host board. Note: You don't need this connection if you will be powering the device from your computer's USB port.
Connect the RX pin of the USB to serial adapter to TXD of the Wi-Fi module.
Connect the TX pin of USB to serial adapter to RXD of Wi-Fi module.
Power up the board and connect the USB to serial adapter to your PC.
You are now ready to flash the Wi-Fi module.
|Wi-Fi Pin Name||FEZ||UC2550/UC5550||UCM Dev Board||UCM Breakout Board|
|BOOT0||Header H1 pin 1||SO-DIMM pin 108||HDR B MS2||MS2|
|TXD||Header H1 pin 2||SO-DIMM pin 93||HDR A SPI B MISO||SPI B MISO|
|RXD||Header H1 pin 3||SO-DIMM pin 94||HDR A SPI B MOSI||SPI B MOSI|
|GPIO 0||WGPIO pin 0||SO-DIMM pin 36||HDR B MS5||N/A|
Flash the Wi-Fi Module
Flash Loader Demonstratorby selecting
Demonstrator GUIin the Windows Start Menu. Make sure to select the port name for the USB to serial adapter you are using. Set the baud rate to 115200, parity to even, disable echo, and set timeout to 20. Then click the
Nextbutton. If you can't find the serial port for your USB to serial adapter, you might have to install its device driver. If its device driver is installed you should see it in Device Manager under
Ports (COM & LPT).
Nextbutton. If all steps were done correctly you should see:
Nextbutton and then choose your device in the dropdown menu. After selecting your device click on the
Download to deviceradio button and then select the Wi-Fi firmware file you downloaded earlier. This file is a .hex file called
SPWF04S-xxxxxx-xxxxxxx-Full.hex. If you are searching for the file, make sure to search for a .hex file. Click the
Nextbutton to copy this file to the Wi-Fi module.
It will take a few minutes to erase the old firmware and copy the new firmware to the Wi-Fi module.
When update is done, remove all wires and load the firmware on the board.
Reset the board.
Next you need to reset the Wi-Fi module to its factory settings.
Reset Factory Wi-Fi Settings
After each update you must reset the Wi-Fi module to its factory settings:
Unplug the board or SoM.
Connect a jumper wire from GPIO 0 of the Wi-Fi module to a 3.3 volt source.
Power up the board.
Remove the jumper wire and reset the device.