I've got pretty quick question as a beginner in STM32 MCUs. I design my own PCB board for STM32F103C8T6 uC with a couple sensors (connecting via SPI and I2C). I want to include also an USB connector in my design to power on board with it and to try to connect with uC via some serial terminal like for example Tera Term using USB. In design document from STMicroelectronics called "USB hardware and PCB guidelines using STM32 MCUs" is said, that F103C8T6 series need pull-up resistor on a DP (D+) line to 3.3V (because this series don't include internal pull-up resistors). Here's some image from this document:
So here's a 4.7K pull-up resistor connected directly to 5V. I am confused about that, because I couldn't find any information about doing that this way, so I would like to ask you if you had any experience in doing this USB connection first or second way, because I am pretty confused and don't have any experience in it yet. The second way with 4.7K and 5V seems much more comfortable, but I dont't know if it will work, because as you can see, the schematic seems to not be from official source, so I don't if I can trust it. I would be very grateful for any guides from you.