MKR Zero_Problem with COM (USB) Port

MY problem is in reference to this topic:
Need Help getting MKR Zero running - MKR Family / MKRZero - Arduino Forum

I'm in exactly the same situation. I transitioned from Arduino Nano to MKR Zero. With the Nano, I did not have any problem at all, everything runs smoothly. However, when got to using MKR Zero, I keep getting COM (USB2.0) problems, numbers keep changing and uploads are failing. Has there bee a fix for this?

This is the error I get:
Arduino: 1.8.19 (Windows 10), Board: "Arduino MKRZERO"
Sketch uses 11204 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2400 bytes (7%) of dynamic memory, leaving 30368 bytes for local variables. Maximum is 32768 bytes.

No device found on COM3
An error occurred while uploading the sketch
Error while setting serial port parameters: 9,600 N 8 1

Is the baud rate @ 9600 correct?

Would appreciate any support...

Thanks,
CSam

Hi @csam. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from an upload attempt when in verbose mode.

Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Uncheck the checkbox next to Show verbose output during: 🗹 compilation
  3. Check the checkbox next to Show verbose output during: ☐ upload.
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. After the upload fails, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
    This copies the full output to the clipboard.
  7. Open a forum reply here by clicking the Reply button.
  8. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  9. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  10. Move the cursor outside of the code tags before you add any additional text to your reply.
  11. Click the Reply button to post the output.

When you open the Tools > Port menu in the Arduino IDE, is there a serial port listed there with the label "(Arduino MKRZERO)" after it (e.g, Tools > Port > COM3 (Arduino MKRZERO))?

Do you have the Serial Monitor window open?

Hi in0...

Here's the code I'm using to test my comm;

void setup() {
Serial.begin(9600);
}

void loop() {
Serial.println("hello");
delay(1000);
}

Here's the screenshot of the IDE;
Serial

Here's the error message;
Arduino: 1.8.19 (Windows 10), Board: "Arduino MKRZERO"

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

Global variables use 2400 bytes (7%) of dynamic memory, leaving 30368 bytes for local variables. Maximum is 32768 bytes.

Forcing reset using 1200bps open/close on port COM3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Uploading using selected port: COM3

C:\Users\ChrisSamonte\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\CHRISS~1\AppData\Local\Temp\arduino_build_928454/SERIAL.ino.bin -R

No device found on COM3

An error occurred while uploading the sketch

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

On the Port number, it keeps changing to COM3 or COM4

When I open the serial monitor to check the codes output, I get this...

Try this:

  1. Press and release the reset button on your board quickly twice.
    You should now see the LED on the board pulsing, which means the bootloader is running.
    The double reset causes the bootloader to run until the board is reset normally, powered off, or an upload is done.
  2. Select the port of your board from the Tools > Port menu.
    The port may be different when the bootloader is running so don't assume you already have the correct port selected.
  3. Start an upload in the Arduino IDE.

The upload should now finish successfully.

After this, you should be able to go back to doing normal uploads without needing to use the reset button technique. If you still need to do the reset trick to do uploads after this, the problem may be caused by your code. You can verify this by uploading a simple sketch like File > Examples > 01.Basics > BareMinimum. If the problem no longer occurs with the "known good" sketch like "BareMinimum", then you will know that it is caused by something in your sketch code.

Thank you in0...
Here's what I get;

1st, I cant figure out why at one minute the comm is at com3(Arduino MKRZERO) and a few seconds later it will change to com4(Arduino MKRZERO). Do I need to update a driver?

2nd, I get "Errors while setting serial port parameter..." Any explanation on why its doing it?

3rd, Do I have to set this parameter?

It is normal for the port number to change during the upload process, but the IDE is designed to automatically handle this and the port is expected to switch back to the original number after the upload finishes.

My guess was that it was related to the Arduino IDE Serial Monitor, which defaults to 9600 baud.

That is why I asked before whether you had Serial Monitor open.

You could test this by selecting a different baud rate from the Serial Monitor baud rate menu and then seeing whether the message changes accordingly the next time you try to upload.

No. The Tools > Programmer menu selection is only used when you are doing Tools > Burn Bootloader or "Upload Using Programmer". When you're doing a standard "Upload", the Tools > Programmer menu selection is completely ignored. So it makes no difference at all what you have selected from the Tools > Programmer menu.

Thank you in0...

I'm still having the same issue. This time I'm thinking I have some kind of power distribution problem when the USB is plugged in to the PC.
This is how I wired my board:

Is this the correct way to configure the 5V (Vin)?

Again, would appreciate your response.

Thanks...

The schematic looks OK to me, but what happens if you disconnect the power from the VIN pin and try uploading with the board powered from the USB cable only?

This is what I get when I disconnect Vin... do you think there is a problem with the driver or the board itself? This is really weird to me as I have not experienced this with the other Arduino boards.

There is definitely some problem if you don't see the port labeled with "(Arduino MKRZERO)" in the Arduino IDE Tools > Port menu like in your other screenshots.

Do you see a labeled port after you do the double reset technique I described previously?

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