According to the Reference Manual 67.2.5.4 Switchable 1.5KΩ USB_DP Pullup Resistor
This product contains a switchable 1.5 KΩ pullup resistor on the USB_n_DP signal. This resistor is switched on to indicate to the host/hub controller that a full-speed-capable device is on the USB cable, powered on, and ready. This resistor is switched off at power-on reset so the host does not recognize a USB device until the processor software enables the announcement of a full-speed device.
However, we do not recommend that you manually change this configuration, because the USB driver will control it.
Thanks for your answer!