Hi all, I have the problem that I've exposed in the tittle. Once compiled when i want to start a debug session i can't do it because of the error: THE SELECTED SERIAL INTERFACE IS EITHER NOT INSTALED.
I don't know what can I do to fix this... I tried to change the port but the error still apears.
What can I do? I work on a INTEL - 8xC251TA
So install it, then!
Or select one which is installed.
THE SELECTED SERIAL INTERFACE IS EITHER NOT INSTALLED OR CURRENTLY IN USE
µVision cannot open the selected COM port. The selected COM port is either not installed or it is currently in use by another program (e.g. terminal).
Or perhaps >COM9
>COM9
Is that a problem for uVision?
Amazing that this (easy to understand) situation still exists in so much software.
"Amazing that this (easy to understand) situation still exists in so much software."
Well that's really Microsoft's fault because different versions of the OS handled it differently, and enumerating the available ports, sparse as they may be, is also non trivial and OS dependent. Who uses serial ports these days anyway?
Maybe not actual, physical RS232 ports; but plenty of people use the Virtual ones - which appear identical to the application...
Connect a couple of GSM modems, all supporting a couple of virtual serial ports for data, debugging, ... and you quickly get 20-30 serial ports in the machine. Disconnect that modem test platform and Windows will still remember the serial port numbers and keep them reserved.
It only remembers USB connected devices via unique serial numbers, without those attached to different USB ports you'll see different COM#
Further the support for adding/removing serial devices, and applications response or failure to handle that (closing out now stale file handles, and structures), is due to Microsoft's piss poor implementation and inconsistent strategy, and the belief the serial port is two decades past obsolescence. And a absence of well considered examples, going beyond CreateFile()
For USB-to-serial adapters without a serial number, Windows will instead remember USB port + ID of the USB controller chip.
So the same adapter connected to four different USB ports is suddenly remembered as four discrete serial ports, and four COMx: names consumed.
So USB adapters without a serial number are best sent directly in the waste basket (or properly turn over for recycling).