Serial port grayed out, trying to program on com256

Hi,

We program a lot of arduinos. One laptop we use (Win 7, 64 bit pro) got up to com port 260 and the com port greyed out in the Arduino IDE. It was trying to program port 256.

I followed instructions here, windows 7 - How do I clean up COM ports in use? - Super User and was able to clear them out of windows, or so it seems...

Problem is the arduino ide starts up trying to look for the next serial port which it still thinks is >256.

I think it has IDE 1.0X or 1.1x. 1.5 was nothing but problems on a lot of computers for me. I know it should be updated, which i will do soon.

I have to plug in an arduino, go into device manager and assign a com port # to it, then i can program it. Not ideal for programming a bunch.

Any BTDT on how to reset the arduino IDE or windows com port #s to work as normal after programming a bunch?

Ideally a way to not have the Arduino IDE (or windows i guess) auto increment the com port every time a new arduino is plugged in would probably be more helpful in the long run. It will probably need to be reset every 6 months or so with the # of arduinos we program.

Thanks for any ideas on this.

Windows may be doing the correct thing in identifying each different arduino USB/serial chip as a different USB/serial chip. If you you have the com port increment problem with the same arduino, then that usually can be fixed in the advanced com port settings. Not sure if you can make windows identify different chips as the same.

It's working again. If you had an arduino that auto incremented above 256 that arduino is assigned above what the ide can see. Even after clearing out the com ports, the ones above 256 are apparently still in Windows somewhere. You have to manually reassign an unused com port number below 256, hit ok, unplug the arduino, plug it back in, then you can program it on that assigned com port.

It's working as it should now. I realize Windows is doing what it's supposed to auto incrementing the com port. If it does this it will run out of ports eventually. Anyone know how to set Windows 7 64 bit to always see new arduinos as a certain com port?

We would never have 2 plugged in at the same time, I don't think there would be an issue with how we program / use them normally.

This is old but i'm updating it for anyone having this issue with a much simpler fix.

You can download this .bat file that will clear assigned serial ports out of windows.

Its by far the easiest way to fix this issue.

You may have to change the name from comportreset.bat.txt to just comportreset.bat. You likely will have to run it from an administrator account so it can clear them from the registry.