Due appears as COM6 port but gives error "No device found on COM6" on upload

This happened to me a bunch of times lately. Selecting another board, disconnecting & reconnecting the USB and reselecting the due fixes it.