Serial.println() was not printing on serial monitor

Your board menu looks much different than mine. Can you check on the board package? It should show up in the "board manager" when you search for "ST":


and perhaps the line in your "preferences" panel: