How to develop your own downloading tool to download firmware to WF121 module
08/218/2015 | 11:43 AM
If you would like to develop your own tool which can download firmware into WF121 over UART, you can make use of DOS executable file of wifi_dfu.exe, which is located under …..\bin\ directory in the SDK folder. You can just call wifi_dfu.exe executable file by your own application.
Below is the syntax of wifi_dfu.exe:
usage: wifi_dfu port baudrate *.dfu [address in hex]
example: wifi_dfu \\.\COM8 5000000 wifi.dfu
Copy the attached *.bat to the project directory in the SDK folder. For example, ……\example\wf121\
Boot WF121 to DFU mode by sending 0x0801000001
You should receive 0x8804000004000000 in response, which confirms the module is booted into DFU module.
If you use a terminal software to send boot command to the module, please remember to close the terminal software before you go to step 3.
3. Double click wifi_dfu.bat (or you can directly run wifi_dfu.exe in DOS prompt)