Go Down

Topic: Arduino MKZero COM port surfing - what could the reason? (Read 531 times) previous topic - next topic

Protonerd

I have an Arduino MKZero, I did some experimenting with it about a year ago (using IDE 1.6.10), with more or less success, but at least code upload worked fine (had to double tap the reset a few times to go back into bootload mode, but that was acceptable).

Now I returned to it, with a kind of new setup, using IDE 1.8.7. Since then the following happens: I find the MKZero on COMx. I upload code, at the end I hear the beep telling me somehow the connection to the board was lost. Then I try opening the Serial Monitor, without success, but in the Port list the MKZero is now assigned to COMy (i.e. another one). This game I can play forever, every time I want to upload I need to change back to COMx, then for Serial Monitor to COMy (at least that is what I observed, but it is kind of seemingly random COM port surfing).
I'm using the latest Board Manager version of the SAMD21 boards.

Any suggestions what I'm doing wrong?

ballscrewbob

#1
Oct 31, 2018, 02:54 pm Last Edit: Oct 31, 2018, 02:56 pm by ballscrewbob
The MKR boards have what amounts to TWO com ports.

The normal one you would see to start programming and a secondary one often referred to as BOOTLOADER.

You can force the bootloader by quickly double tapping the reset button which can be very useful with an errant sketch. That allows you in almost all cases to take back control of the board.

Normally during an upload it will often change the port to the bootloader one and once the upload is complete then revert back to the original port.

Does that describe what you are seeing ?

EDIT.
BTW with so many posts under your belt finding the MKRZERO section should have been quite easy ;)
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Protonerd

Hi ballscrewbob, your description fits to the one I provided, thanks. However it still does not explain:
- why I did not experience this nuisance working with an older IDE
- if it is the desired behaviour at all. It is a major pain to work like that. Is there anything what can be improved here? I definitely do not want this PORT hopping and I also do not see the reason for it.

Ps.: thanks for the hint about the MKZERO topics, is there a dedicated forum section for it?

ballscrewbob

Not sure why you didnt see this with an older IDE as thats how it has always been.
In fact for the MKR1000 it used to be worse  until a firmware upgrade. There is not one for the MKRZERO as it operate differently and does not have the WiFi etc.

Sometimes the computer hardware seems to come into play too as XP took longer between the swapping (noticeable) and CREATE editor seems quickest, but doesnt work well on XP ?!?!?!?

LOL I moved you here to the MKRzero section..
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up