Arduino Nano33 IOT uploading errors

Sketch uses 11456 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.
No device found on COM4
Failed uploading: uploading error: exit status 1

Please help me with an advice how to fix this type of error, i have tried to reset the board but still the error occurs. Also, the port jumps from port 4 to port 6.
I tried with resetting the reset button, then to upload the “bare minimum” sketch.

Hi @Gheorghe168243 - welcome to the forums :slight_smile:

Can you provide some pictures of how you have everything set up, as well as the Arduino board and port settings?
Often these make it easier to catch something that might have been overlooked.


image
I have attached a screenshot with the errors when i try to upload the blink example. Also, a screenshot with my ports(from the device manager). And a picture with my arduino nano33

Thank you very much for your support

The device operates with two different COM ports and you have to be sure you are using the correct one. Your Device Manager list shows several ports, but I don’t believe they will all be active at once.

Disconnect everything and start over. When you first connect the device you should get one port listed. Press reset twice quickly. The port number (and possibly the name) will change. That is the port you select in the IDE for uploading.

Select that port in the IDE and do the upload. Press reset again when the upload finishes.

If you get no ports listed when you connect the device, press reset. You should get one port. Press reset twice quickly to get the bootloader port.

If you get two ports listed then they should have different names. Use the one labelled bootloader.

1 Like

Thank you very much, Jeff, for your help.
I have tried your solution. Not all the time it works.
When I connect the device, I get port COM4 listed. Then I press reset button quickly twice and I get port COM5 or port COM6. I select that port (5 or 6) and i upload. Not all the time the code is uploaded and i still get the error. I tried to close and open the IDE and same result: sometimes it works, sometime not.
And i got another issue: trying to upload a code about blinking device led(not the sample Blink), the led is still blinking. I do not know how to stop it. Even I run another code/or pressing twice the reset button, the led still blinking. Also, I remember, the led was blinking first time when I connected the device(after I bought it), not sure if it is normal or not.
I keep trying to fix the issue.
I have one more question: what power pin I need to use when I try to connect to Arduino nano33 the sensor DHT22 OR DHT 11? 5V OR 3.3V. Because the information I have found on Internet is confusing.
I tried with 5V and i got no values on serial monitor, just error messages
Thank you very much

In the Arduino IDE, go to the “Tools” menu and verify that the correct board is selected under “Board” and the correct port is selected under “Port”. If the port is jumping from COM4 to COM6, it could indicate a problem with the USB connection or drivers.

1 Like

If you get a port listed when you first connect, and it then changes when you press reset twice, then that part of the process is working. That is the point where you have to change the port number in the IDE to the new port. The ports can be different each time - the process by which Windows selects the port number to assign to a device is not consistent. Your Device Manager list shows that 5 and 6 have been used for the upload port. That two ports are listed could indicate a cable connection problem. If you delete the ports in Device Manager then Windows will recreate them, and you might have just the two you need.

Can you please show exactly what happens when “the code is uploaded and i still get the error.” because the error you have shown clearly indicates that the code was not uploaded. In that case it was because the IDE was still set at 4 when either 5 or 6 would have been correct.

It is common for the device to be supplied with the Blink program already installed. If you try to upload some different code but the LED blinks the same then that indicates that the new code did not upload. A useful way to test the uploading is to change the time for the blink (eg, on 2000, off 1000) and upload again: changing just one thing each time is good debugging practice.

For these devices I find it is easiest to use a different serial communication program to see the console output. You can use a second instance of the IDE, but that can get confusing when the IDE automatically changes ports for you. There are many serial communication programs available for free download. You can then leave the IDE connected to the upload port (5 or 6 in your case) while the other serial communication program is connected to console (4).

The DHT can handle either 3.3V or 5V, but your Nano IoT is exclusively 3.3V and cannot be connected to any devices running at 5V. If you get the upload working reliably you can post the exact error message you are getting with the DHT and someone will look at the problem.

2 Likes

Thank you very much @Jeff105671 and @lia262073 for your messages and your help.
I have fixed my issue by changing the port location where i connect the USB cable in my laptop. Before I connected the cable to the left side (where there are 2 ports), now I have connected it to the right side.
I don’t know if they are different, or I got some hardware issues with my laptop when I disassembled it last year to change the battery(maybe damaging the physical ports, etc)
Now everything is ok, there are no errors.
IDE port is all the time COM4, no jumps to COM5 or COM6.

Thank you very much for your support and help

1 Like

Good to know that it is working.