WINC1500 Firmware old and won't update

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

WINC1500 Firmware old and won't update

Post by N6BM »

Finished building up the Feather WIFI clock and going to File>Examples>Adafruit_WINC1500>CheckWifi101FirmwareVersion is failing due to "old firmware". I went to Windows 10 Device Manager COM9 Adafruit M0 (COM9) Driver Provider: Adafruit - Driver date: 11/15/2007 v 5.1.2600.0
WINC1500 "Should be firmware 19.4.4 "IF YOU GET NO RESPONSE, THE FIRMWARE IS WAAAY TOO OLD.
QUESTION: Why isn't the new firmware in the Feather M0 driver update package?
Is this a bug or can you give instructions as to updating the Windows Adafruit WINC1500 firmware to 19.4.4

Serial.println(" - The firmware version on the WINC1500 do not match the");
Serial.println(" version required by the library, you may experience");
Serial.println(" issues or failures.");

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

Our WINC1500 feather ships with 19.4.4. I don't know why you;re getting that error. Can you cut and paste here the entire trace output from Serial Monitor?

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

Maybe my problem is simply the red warning after clicking VERIFY: "Spurious .github in folder 'Adafruit_WINC1500' library" My file structure for my Arduino 1.6.8 has all of the uncompressed files in my ARDUINO/LIBRARIES folder
ARDUINO/LIBRARIES/Adafruit_WINC1500/ > Folders include three: .github - examples - sfc

Here's the results after clicking VERIFY:

/*
* This example check if the firmware loaded on the ATWINC1500 is updated.
*
* Circuit:
* - Feather M0 WiFi (WINC1500), WiFi 101 shield, or WINC1500 Breakout
*
* Created 29 July 2015 by Cristian Maglie
* This code is in the public domain.
*/
#include <SPI.h>
#include <Adafruit_WINC1500.h>

// Define the WINC1500 board connections below.
// If you're following the Adafruit WINC1500 board
// guide you don't need to modify these:
#define WINC_CS 8
#define WINC_IRQ 7
#define WINC_RST 4
#define WINC_EN 2 // or, tie EN to VCC
// The SPI pins of the WINC1500 (SCK, MOSI, MISO) should be
// connected to the hardware SPI port of the Arduino.
// On an Uno or compatible these are SCK = #13, MISO = #12, MOSI = #11.
// On an Arduino Zero use the 6-pin ICSP header, see:
// https://www.arduino.cc/en/Reference/SPI

// Setup the WINC1500 connection with the pins above and the default hardware SPI.
Adafruit_WINC1500 WiFi(WINC_CS, WINC_IRQ, WINC_RST);

// Or just use hardware SPI (SCK/MOSI/MISO) and defaults, SS -> #10, INT -> #7, RST -> #5, EN -> 3-5V
//Adafruit_WINC1500 WiFi;

void setup() {
#ifdef WINC_EN
pinMode(WINC_EN, OUTPUT);
digitalWrite(WINC_EN, HIGH);
#endif

// Initialize serial
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}

// Print a welcome message
Serial.println("WINC1500 firmware check.");
Serial.println();

// Check for the presence of the shield
Serial.print("WINC1500: ");
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("NOT PRESENT");
return; // don't continue
}
Serial.println("DETECTED");

// Print firmware version on the shield
String fv = WiFi.firmwareVersion();
Serial.print("Firmware version installed: ");
Serial.println(fv);

// Print required firmware version
Serial.print("Firmware version required : ");
Serial.println(WIFI_FIRMWARE_REQUIRED);

// Check if the required version is installed
Serial.println();
if (fv == WIFI_FIRMWARE_REQUIRED) {
Serial.println("Check result: PASSED");
} else {
Serial.println("Check result: NOT PASSED");
Serial.println(" - The firmware version on the WINC1500 do not match the");
Serial.println(" version required by the library, you may experience");
Serial.println(" issues or failures.");
}
}

void loop() {
// do nothing
}
Attachments
Adafruit Feather driver Properties.png
Adafruit Feather driver Properties.png (19.18 KiB) Viewed 1386 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

That's just the source code. It's not reporting a problem.

You can ignore the spurious library thing

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

adafruit_support_rick wrote:That's just the source code. It's not reporting a problem.

You can ignore the spurious library thing
Thanks...I still can't seem to get any results and I'm really stuck. Here's my results from another stab at getting it to work

Code: Select all

/*
 * This example check if the firmware loaded on the ATWINC1500 is updated.
 *
 * Circuit:
 * - Feather M0 WiFi (WINC1500), WiFi 101 shield, or WINC1500 Breakout
 *
 * Created 29 July 2015 by Cristian Maglie
 * This code is in the public domain.
 */
#include <SPI.h>
#include <Adafruit_WiFiMDNSResponder.h>
#include <Adafruit_WINC1500.h>
#include <Adafruit_WINC1500Client.h>
#include <Adafruit_WINC1500Server.h>
#include <Adafruit_WINC1500SSLClient.h>
#include <Adafruit_WINC1500Udp.h>
#include <Adafruit_WINC1500.h>

// Define the WINC1500 board connections below.
// If you're following the Adafruit WINC1500 board
// guide you don't need to modify these:
#define WINC_CS   8
#define WINC_IRQ  7
#define WINC_RST  4
#define WINC_EN   2     // or, tie EN to VCC
// The SPI pins of the WINC1500 (SCK, MOSI, MISO) should be
// connected to the hardware SPI port of the Arduino.
// On an Uno or compatible these are SCK = #13, MISO = #12, MOSI = #11.
// On an Arduino Zero use the 6-pin ICSP header, see:
//   https://www.arduino.cc/en/Reference/SPI

// Setup the WINC1500 connection with the pins above and the default hardware SPI.
Adafruit_WINC1500 WiFi(WINC_CS, WINC_IRQ, WINC_RST);

// Or just use hardware SPI (SCK/MOSI/MISO) and defaults, SS -> #10, INT -> #7, RST -> #5, EN -> 3-5V
//Adafruit_WINC1500 WiFi;

void setup() {
#ifdef WINC_EN
  pinMode(WINC_EN, OUTPUT);
  digitalWrite(WINC_EN, HIGH);
#endif

  // Initialize serial
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // Print a welcome message
  Serial.println("WINC1500 firmware check.");
  Serial.println();

  // Check for the presence of the shield
  Serial.print("WINC1500: ");
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("NOT PRESENT");
    return; // don't continue
  }
  Serial.println("DETECTED");

  // Print firmware version on the shield
  String fv = WiFi.firmwareVersion();
  Serial.print("Firmware version installed: ");
  Serial.println(fv);

  // Print required firmware version
  Serial.print("Firmware version required : ");
  Serial.println(WIFI_FIRMWARE_REQUIRED);

  // Check if the required version is installed
  Serial.println();
  if (fv == WIFI_FIRMWARE_REQUIRED) {
    Serial.println("Check result: PASSED");
  } else {
    Serial.println("Check result: NOT PASSED");
    Serial.println(" - The firmware version on the WINC1500 do not match the");
    Serial.println("   version required by the library, you may experience");
    Serial.println("   issues or failures.");
  }
}

void loop() {
  // do nothing
}
Last edited by adafruit_support_rick on Wed Jun 22, 2016 6:34 pm, edited 1 time in total.
Reason: please use Code tags when posting code (</> button)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

Post the output from serial monitor when you run that code.

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

The 7 digit display has only dashes (see photo) and the colon blinks...no OLED Featherwing display. I have loaded the code first WiFiUdpNtpClient, set my SSID and Password and it sees the WIFI network OK then I go to File > Examples and load the WINC1500 > clock_sevenseg_ds1307

I have run the firmware test and I get the correct version with baud at 9600. I have run the WIFI test and it sees my network. I set my SSID and password. My Featherwing OLED display remains blank.

I used a Weller temperature controlled soldering station with a needle point to do all of my soldering with no problems. I inspected the boards with a lighted magnifying lamp and there are no solder bridges or cold solder joints.
I don't know what more to do and look forward to some steps to try to get the time working
Attachments
Wifi_clock.jpg
Wifi_clock.jpg (38.09 KiB) Viewed 1367 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

N6BM wrote:then I go to File > Examples and load the WINC1500 > clock_sevenseg_ds1307
Do you have a DS1307 attached to the system? I don't see one in the picture.

If your goal is to display the NTP time from WiFi, then you'll have to make a new sketch: a merge of the NTP sketch and the clock sketch. I would start with a copy of the NTP sketch, and then copy over the time display parts of the clock sketch.

You might actually want to get an RTC, like a ds1307, because that will be more accurate than the on-chip clock of the Feather. That way, you won't have to keep hammering the NTP server. You could update from NTP, say, once per week and still keep accurate time.

You definitely don't want to be hitting the NIST NTP server every 10 seconds, like the NTP example sketch does. That is very bad etiquette.

What are you trying to do with the OLED?

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

Hi, I've made lots of progress with my Feather 7 segment WIFI clock since I made this post.
The firmware is up to date with the latest version and I see my wifi SSID. I have installed the required examples.

I copied directly the clock code https://learn.adafruit.com/7-segment-di ... clock/code
and I get this error message so I think the CODE on the Adafruit website might need fixing. I'm stuck and could use some help.
Bill

Arduino: 1.6.8 (Windows 10), Board: "Adafruit Feather M0 (Native USB Port)"

WARNING: Spurious .github folder in 'Adafruit SSD1306' library
WARNING: Spurious .github folder in 'Adafruit_WINC1500' library
WARNING: Spurious .github folder in 'RTClib' library
C:\Users\Bill\Documents\Arduino\MyNISTexperiment\MyNISTexperiment.ino: In function 'void loop()':

MyNISTexperiment:248: error: expected primary-expression before ')' token

if ((minutes == 0) || ((minutes % 5) == 0))) {

^

MyNISTexperiment:248: error: expected ';' before ')' token

MyNISTexperiment:368: error: expected '}' at end of input

SOLDERING (AKA BUILD IT!) RUN IT!
^
exit status 1
expected primary-expression before ')' token

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

It's in your sketch at line 248. You've got one too many ')' at the end of that line.

Code: Select all

if ((minutes == 0) || ((minutes % 5) == 0))) {
It should be

Code: Select all

if ((minutes == 0) || ((minutes % 5) == 0)) {

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

Thanks....still won't load...
Here's the error message: (I'm learning so you're help is REALLY appreciated. Thanks

Arduino: 1.6.8 (Windows 10), Board: "Adafruit Feather M0 (Native USB Port)"

WARNING: Spurious .github folder in 'Adafruit SSD1306' library
WARNING: Spurious .github folder in 'Adafruit_WINC1500' library
WARNING: Spurious .github folder in 'RTClib' library
MyNISTexperiment:367: error: 'OK' does not name a type

OK upload it to your Feather M0 WiFi!

^

exit status 1
'OK' does not name a type

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
N6BM
 
Posts: 75
Joined: Mon Nov 10, 2014 4:22 pm

Re: WINC1500 Firmware old and won't update

Post by N6BM »

OK, dummy me, I deleted the text and re-ran the code and it works great!!!

Thanks for great support on this cool little clock

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WINC1500 Firmware old and won't update

Post by adafruit_support_rick »

cool!

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”