Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware Updater stuck on "Synch with programmer" #5

Open
PKGeorgiev opened this issue May 3, 2016 · 5 comments
Open

Firmware Updater stuck on "Synch with programmer" #5

PKGeorgiev opened this issue May 3, 2016 · 5 comments

Comments

@PKGeorgiev
Copy link

PKGeorgiev commented May 3, 2016

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
Copy link
Author

PKGeorgiev commented May 16, 2016

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?

@sandeepmistry
Copy link
Contributor

@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.

@PKGeorgiev
Copy link
Author

@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.

@sandeepmistry
Copy link
Contributor

@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 arduino/ArduinoCore-samd#116 resolves).

@PKGeorgiev
Copy link
Author

@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.

@per1234 per1234 reopened this Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants