Question
USB VCP Get_SerialNum
Hello Everybody,
I use STM32CubeIDE1.15.0 Build: 20695_20240315_1429 and a custom board with a STM32303RE inside.
I use the IOC interface to set the virtual port com. Everything work fine, just a detail: when i connect, then disconnect and reconnect the USB port, the port com number on Windows change, It increase (search the next available number)! The VID and PID are always the same, so I focus on the serial number, and i found that (code generate by STM32CubeIde):
usbd_desc.c:

3 undefined local variables, which are used to generate the serial number. Each time I connect the USB cable, the values change=>so the serial number change.
Is it normal? Is it a (strange) way to generate a randomize serial number?
Just a bug?
(VCP number seems better with this fix:

;)
)
BR,
Guillaume Le Gal
