Hello Zhiyong,
The USBSerial seems to work reliably on an STM32F407VE also with Mbed OS 6. But I have tested it only on Linux (Ubuntu 18.04). Also notice that the USBSerial wants a DTR signal on the terminal side as explained here by Johannes.
Best regards,
Zoltan