From c94eb8f12a90a58609dbd6e3a0f03c2164defe49 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 6 Dec 2017 20:43:24 +0200 Subject: [PATCH] Update WINC firmware script --- usr/examples/14-WiFi-Shield/fw_update.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/usr/examples/14-WiFi-Shield/fw_update.py b/usr/examples/14-WiFi-Shield/fw_update.py index 1a8ee836e..84762c74c 100644 --- a/usr/examples/14-WiFi-Shield/fw_update.py +++ b/usr/examples/14-WiFi-Shield/fw_update.py @@ -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 -# uSD card and but a bin file in it. The firmware update code will load that -# new firmware onto the WINC module. +# This script updates the ATWINC1500 WiFi module firmware. +# Copy the firmware image to uSD card before running this script. +# NOTE: Firmware version 19.5.2 does NOT support ATWINC1500-MR210PA. import network # Init wlan module in Download mode. wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE) -print("Firmware version:", wlan.fw_version()) # Start the firmware update process. -wlan.fw_update() -print("Firmware version:", wlan.fw_version()) +# For ATWINC1500-MR210PA/B +#wlan.fw_update("/winc_19_4_4.bin") + +# For ATWINC1500-MR210PB only. +wlan.fw_update("/winc_19_5_2.bin")