I'm trying to add WiFi connectivity to my project, which is based on the nRF9160DK and the zephyr OS, which supports the use of the Adafruit WINC1500 WiFi-chip. I tried to run the wifi-sample provided by zephyr and got a firmware mismatch error.
I found this guide how to update the firmware:
I found a Arduino-Board (Arduino Due) to mount the WiFi-shield and downloaded the Arduino IDE (1.8.15).
After installing the board support and the WiFi101 library, i was able to load the firmwareCheck sketch on the Arduino and verified the firmware issue i suspected when debugging the wifi-sample from zephyr. By the way, to run the wifi-sample i only need the firmware version 19.5.2.
WiFi101 firmware check. WiFi101 shield: DETECTED Firmware version installed: 19.4.4 Firmware version required : 19.6.1 Check result: NOT PASSED - The firmware version on the shield do not match the version required by the library, you may experience issues or failures.
Now i followed the instructions on the firmware update guide. I opened the firmwareUpdater sketch and loaded it successfully on the Arduino board.
Sketch uses 18768 bytes (3%) of program storage space. Maximum is 524288 bytes. Atmel SMART device 0x285e0a60 found Erase flash done in 0.028 seconds Write 20996 bytes to flash (83 pages) [==============================] 100% (83/83 pages) done in 4.066 seconds Verify 20996 bytes of flash [==============================] 100% (83/83 pages) Verify successful done in 3.819 seconds Set boot flash true CPU reset.
Next step was opening the Updater-Tool and loading the firmware. In this step i became a connecting error, which is odd since i already was able to load two sketches.
The console output was the following:
java.lang.Exception: Programmer not responding Make sure that FirmwareUpdater sketch is loaded on the board. at cc.arduino.plugins.wifi101.flashers.java.FlasherSerialClient.hello(FlasherSerialClient.java:108) at cc.arduino.plugins.wifi101.flashers.Flasher.testConnection(Flasher.java:90) at cc.arduino.plugins.wifi101.UpdaterImpl$1.run(UpdaterImpl.java:181)
I'm using Windows 10, if this is important. Can anyone help me on this one?