Skip to content

Firmware update fails if Serial Monitor/Plotter is open #2060

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

Open
3 tasks done
per1234 opened this issue May 10, 2023 · 0 comments
Open
3 tasks done

Firmware update fails if Serial Monitor/Plotter is open #2060

per1234 opened this issue May 10, 2023 · 0 comments
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented May 10, 2023

Describe the problem

Arduino IDE includes a "WiFi101 / WiFiNINA Firmware Updater"" tool that can be used to update the firmware on the Wi-Fi radio module of Arduino boards (e.g., MKR WiFi 1010, Nano 33 IoT).

🐛 If Serial Monitor is open when a firmware update is attempted, it fails.

To reproduce

  1. Connect an Arduino board that has a u-blox NINA-W102 module to your computer via the USB cable.
  2. Select the board and port in the IDE.
  3. Open Serial Monitor (Tools > Serial Monitor).
  4. Select Tools > WiFi101 / WiFiNINA Firmware Updater from the Arduino IDE menus.
    The "WiFi101 / WiFiNINA Firmware Updater" dialog will open.
  5. Select the board in the "WiFi101 / WiFiNINA Firmware Updater" dialog.
  6. Click the "CHECK UPDATES" button.
  7. Click the "INSTALL" button
    It doesn't matter which firmware version you flash.
  8. Wait for the update process to finish.

🐛 The process fails:

⚠️ Installation failed. Please try again.

Expected behavior

The IDE should automatically close Serial Monitor's connection to the port as needed so that it does not interfere with the operation of the Firmware Updater tool, reopening the port in Serial Monitor once done. This is how it is handled during the Upload operation.

Arduino IDE version

Original report

36e2092

Last verified with

9a6a457

Operating system

  • Windows
  • Linux
  • macOS

Operating system version

  • Windows 11
  • Ubuntu 22.04
  • macOS Ventura

Additional context

I bisected the regression to 80d5b5a


A prior incarnation of the bug (since fixed) was tracked at #684

A related bug with the "Upload SSL Root Certificates" tool is tracked at #750

Workaround

  1. Click the X icon in the "WiFi101 / WiFiNINA Firmware Updater" dialog if it is open.
  2. Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close the tab:
    image
  3. Update the firmware as usual.
  4. Open Serial Monitor again if needed (by clicking the icon on the IDE toolbar or the Tools > Serial Monitor menu item) after the upload is finished.

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: serial monitor Related to the Serial Monitor labels May 10, 2023
@kittaakos kittaakos self-assigned this May 10, 2023
@per1234 per1234 changed the title Firmware update fails if Serial Monitor is open Firmware update fails if Serial Monitor/Plotter is open Jul 31, 2023
@kittaakos kittaakos removed their assignment Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants