Update WINC firmware script

This commit is contained in:
iabdalkader 2017-12-06 20:43:24 +02:00
parent 4ca7cbe266
commit c94eb8f12a

View File

@ -1,15 +1,17 @@
# WINC Firmware Update Script # WINC Firmware Update Script.
# #
# To start have a successful firmware update create a "firmware" folder on the # This script updates the ATWINC1500 WiFi module firmware.
# uSD card and but a bin file in it. The firmware update code will load that # Copy the firmware image to uSD card before running this script.
# new firmware onto the WINC module. # NOTE: Firmware version 19.5.2 does NOT support ATWINC1500-MR210PA.
import network import network
# Init wlan module in Download mode. # Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE) wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE)
print("Firmware version:", wlan.fw_version())
# Start the firmware update process. # Start the firmware update process.
wlan.fw_update() # For ATWINC1500-MR210PA/B
print("Firmware version:", wlan.fw_version()) #wlan.fw_update("/winc_19_4_4.bin")
# For ATWINC1500-MR210PB only.
wlan.fw_update("/winc_19_5_2.bin")