Ports menu grayed out

I'm trying to use Arduino 2.3.2 with an STM32F405 board and I configured it to use these recommended settings, but I can't open the Serial monitor for the board. It can connect to my laptop and even upload code successfully, but I can't access the ports menu and receive Serial output from the board.

Edit: I'm able to get the Ports menu to open back up if I go into the Device manager and add additional ports, but usually my boards use COM3 or COM5, which I cannot access through the ports menu. All of the legacy hardware I install (tried the Arduino USB Serial adapter and the STMicroelectronics Virtual COM port) will only install in ports after 5. I was only able to get it working once, and that was when I was able to connect to COM5, but I don't know what happened to allow access to COM5, and it stopped working as soon as I attempted to upload a different sketch to the board.

I have another version STM32 (Blue Pill). This is supposed to be ok for any STM32

USBSerial serial;

void setup() {
  serial.begin(115200);
}

void loop() {
  serial.println("Hello");
  delay(200);
}

The code I'm trying to run looks pretty similar:

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("Serial is alive!");
  delay(500);
}

But I did try to run yours just now and I'm running into the same problem: the Serial Monitor says that there aren't any boards connected.

But it's not. The code I posted does not use Serial. It uses USBSerial.
Note it isn't Serial.begin(), it's serial.begin() (lower case 's')

Right! Sorry for the confusion, I'm trying to say that running your code didn't fix the issue either. :frowning_face:

Try these recommendations from Arduino...