Arduino IDE 1.8.19 do not see any COM ports

Hi,
I use IDE 1.8.19 under Win7, recently I was working with STM32.
Yesterday my IDE begin reporting: no COM port available, com port selection is "gray".

  • System have 3 COM ports: hardware and 2 adapters: CH340, CP2102, all works with other software only IDE can not see/detect them.
  • when I delete config files (preferences) and IDE create new clean one, all works.
  • any modification of my preferences file in section related to COM ports does not make any changes.
  • I plug Arduino Uno and add manually COM port to preferences, I can load the code to Uno but port is still not available/gray.
  • IDE report can not communicate with device null.
    Any solution for it?
    Regards

Hi @viayner. There was a bug in versions 2.8.0 and 2.8.1 of the "STM32 MCU based boards" platform (AKA "STM32duino") that caused this problem:

The bug in the platform has since been fixed:

So you can solve the issue in Arduino IDE it by using the Arduino IDE Boards Manager to update that platform to the latest version (2.9.0).

Unfortunately some additional incompatibilities with Arduino IDE 1.x have been introduced into the platform (the developers now only officially support its use with Arduino IDE 2.x). There are instructions here for fixing the other incompatibilities with Arduino IDE 1.x:

The alternative solution would be to use Boards Manager to downgrade the platform to version 2.7.1, which the last version that has out of the box compatibility with Arduino IDE 1.x.

Hi,
great, Thank you, that was the problem, downgrade to 2.7.1 bring me back COM ports.
Now I notice that recently (day before) there was some upgrade installed, I use previously 2.7.1 for long time.
By the way, I have some project with STM32F030xx and always I got a compilation error, is there any known issue of that? I mean some library incompatibility?
With F407 and F411 I did not notice any problems.
Regards

You are welcome. I'm glad it is working now!

Since it is unrelated to the original subject of this topic, please open a new forum topic for that question. This will ensure it gets the attention of the forum helpers knowledgeable about the subject of your new question.