arduino-fwuploader icon indicating copy to clipboard operation
arduino-fwuploader copied to clipboard

Firmware Updater stuck on "Synch with programmer"

Open PKGeorgiev opened this issue 8 years ago • 5 comments

I'm trying to add new certificate to my mlk1000. My steps were:

  1. I've uploaded FirmwareUpdater sketch to the MCU with no errors
  2. I ran winc1500-uploader.exe -address=*****.com:443 -port=COM4
  3. The result is:

2016/05/03 17:45:31 Connecting to programmer 2016/05/03 17:45:33 Synch with programmer

The same happens with winc1500-uploader-gui. It stucks on "Synchronizing with the programmer".

My configuration:

  1. IDE selection
  • Board: Arduino/Genuino MKR1000
  • Port: COM4
  1. OS Windows 10
  2. Genuino MKR1000, MR510PB
  3. CheckWifi101FirmwareVersion returns:

WiFi101 firmware check.

WiFi101 shield: DETECTED Firmware version installed: 19.4.4 Firmware version required : 19.4.4

Check result: PASSED

  1. WiFi 101 version 0.9.1
  2. Board Library: Arduino SAMD boards version 1.6.5

UPDATE: after trying to unsuccessfully update certificates on my MKR1000, it will not handle SSL connections at all. I've tried WiFiSSLClient sketch and it fails to connect to google on port 443. The output is:

Attempting to connect to SSID: **** Connected to wifi SSID: **** IP Address: 192.168.43.18 signal strength (RSSI):-39 dBm

Starting connection to server...

disconnecting from server.


The normal WiFiClient sketch works.

PKGeorgiev avatar May 03 '16 14:05 PKGeorgiev

Interestingly, after soldering the two racks /male strip headers/ (for testing gpio pins) - I was able to upload custom certificates. May be the problem was due to some "noise" or something. If somebody encounters the same problem - just solder the racks and try again.

p.s. I haven't tried lower baud rates. May be 115200 bps is too high and make the connection unstable?

PKGeorgiev avatar May 16 '16 11:05 PKGeorgiev

@PKGeorgiev

If somebody encounters the same problem - just solder the racks and try again.

Could you please expand on what this mean?

p.s. I haven't tried lower baud rates. May be 115200 bps is too high and make the connection unstable?

Since the MKR1000 uses native USB for the Serial port, the baud rate is not actually used.

sandeepmistry avatar May 27 '16 21:05 sandeepmistry

@sandeepmistry after soldering the two male strip headers to the MCU I was able to upload certificates to mkr1000 without problems. My theory is that sometimes there may be some interference at 115200 bps. I cannot prove it, because I have only one MKR1000 at the moment. I've seen other people experiencing the same problem.

PKGeorgiev avatar May 29 '16 09:05 PKGeorgiev

@PKGeorgiev there's most likely something software related. The h/w pins are not used for the USB data transfer for firmware upload.

I've seen other people experiencing the same problem.

Where have these been reported?

I know there is an open issue with OS X and firmware updates over native USB ports (which something like https://github.com/arduino/ArduinoCore-samd/pull/116 resolves).

sandeepmistry avatar May 30 '16 16:05 sandeepmistry

@sandeepmistry , my OS is Windows 10. I've found some comments like http://mohanp.com/mkr1000-azure-iot-hub-how-to/#div-comment-37

It is fact that I wasn't able to upload certificates without first soldering the two male strip headers to the MCU. That's why I suggested more verbose output in the CLI.

PKGeorgiev avatar May 31 '16 07:05 PKGeorgiev