It could happen that plugging the USB cause the allocation of a new COM instance, under Windows.
If so, you have to check what COM is using Arduino, once plugged, rather than forcing your choice ("COM7") before connection.
I'm also a newbie, but I hope this could help you. In any case, wait also for more expert suggestions! ![]()