Nano 33 loT - An error occurred while uploading the sketch

Hi guys,

I was playing around with my Arduino nano 33 loT. The sketches were uploaded fine, but at some point, I have this error occur. I tried troubleshooting for the port, cable, and Arduino itself and they all work fine. Any suggestions on what I should do?

code here:
Arduino: 1.8.20 Hourly Build 2022/04/25 09:33 (Windows 10), Board: "Arduino NANO 33 IoT"

Sketch uses 11404 bytes (4%) of program storage space. Maximum is 262144 bytes.

Global variables use 3560 bytes (10%) of dynamic memory, leaving 29208 bytes for local variables. Maximum is 32768 bytes.

Forcing reset using 1200bps open/close on port COM3

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

PORTS {COM3, } / {COM3, } => {}

Uploading using selected port: COM3

C:\Users\lzhan\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM3 -U true -i -e -w -v C:\Users\lzhan\AppData\Local\Temp\arduino_build_247354/sketch_nov09b.ino.bin -R

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

double reset should activate the bootloader. LED will pulsate.

Adding to @Juraj's reply above.

Is COM3 indeed the Nano33 IoT? Does it disappear when you disconnect the board? If not, it's not your board.
Possible cause for that are

  1. Your're using a charge-only cable instead of a data/sync cable.
  2. You have loaded a sketch that has a bug that prevents the board from being detected.

It worked!! Thank you so much!!

I tried @Juraj 's suggestion double reset and it worked!! Thank you so much!! I think there's a bug in my previous sketch but it worked now!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.