EmotiBit / ofxEmotiBit

OpenFrameworks library and examples for the EmotiBit
MIT License
33 stars 7 forks source link

WINC updater giving version mismatch error #242

Open nitin710 opened 2 weeks ago

nitin710 commented 2 weeks ago

Describe the bug EmotiBit Firmware updater is failing to update WINC FW.

Expected behavior

Additional details

To Reproduce Steps to reproduce the behavior:

  1. Run the firmware installer on a Feather M0
  2. Check the logs on the console

Log

FirmwareInstaller-log.txt

In particular, notice

[notice ] Device details: Port: COM9 ; Desc: USB Serial Device (COM9) ; VID: 239A ; PID: 800B
[notice ] Board Detected: Feather M0
[notice ] New COM port detected: COM9
[notice ] Feather found at: COM9
[notice ] UPDATING WINC FW: COMMAND: : data\WINC\FirmwareUploader.exe -port COM9 -firmware data\WINC\m2m_aio_3a0.bin
2024/06/17 16:45:23 Connecting to programmer
2024/06/17 16:45:24 Opened the serial port with baud rate 115200
2024/06/17 16:45:24 Sync with programmer
2024/06/17 16:45:24 Error: Programmer version mismatch: v 
nitin710 commented 2 weeks ago
nitin710 commented 2 weeks ago

In another try, it failed once, but succeeded the second time. the console output looked like the following. Note that it says needed v10000.

[notice ] UPDATING WINC FW: COMMAND: : data\WINC\FirmwareUploader.exe -port COM11 -firmware data\WINC\m2m_aio_3a0.bin
2024/06/19 10:39:33 Connecting to programmer
2024/06/19 10:39:33 Opened the serial port with baud rate 115200
2024/06/19 10:39:33 Sync with programmer
2024/06/19 10:39:33 Error: Programmer version mismatch: v 
(needed v10000)
2024/06/19 10:39:33 Waiting 1 second before retrying...
2024/06/19 10:39:34 Retrying upload (1 of 9)
2024/06/19 10:39:34 Connecting to programmer
2024/06/19 10:39:34 Opened the serial port with baud rate 115200
2024/06/19 10:39:34 Sync with programmer
2024/06/19 10:39:34 Reading max payload size
2024/06/19 10:39:34 Flashing firmware from 'data\WINC\m2m_aio_3a0.bin'
2024/06/19 10:39:34 Erasing 359356 bytes from address 0x0
Flashing: 3%
Flashing: 8%ing: 4%
Flashing: 12%8%
Flashing: 16%ing: 12%
nitin710 commented 2 weeks ago

Unable to recreate this issue reliably. The same Feather that initially showed this issue now updates WINC1500 without any issues..

nitin710 commented 1 week ago

Observation: It may have been because an Arduino instance was open somewhere with a Serial monitor attached to that port. It seemed like if a serial monitor was attached to that port, the WINC programmer failed.