Problem with serial connection for STM32 target

Dear Alex, Thanks for your reply

I compiled the hex on the same version compiler as you mention, still getting the same message “WARNING:Timeout …”

I’m working on ubuntu 18 running on virtual machine,
compiler info:
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]
Copyright © 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.