Skip to main content
Konmax
Associate
August 8, 2017
Question

USB VCP Windows 10

  • August 8, 2017
  • 14 replies
  • 8541 views
Posted on August 08, 2017 at 14:36

Hi,

The problem is when using USB VCP under Windows 10 on the Nucleo f746 board. The COM port is not open. When connecting to Windows 7 COM port opens.

I tried to board Nucleo l432. Works under Windows 7 and Windows 10.

    This topic has been closed for replies.

    14 replies

    JLojo
    Associate III
    February 2, 2021

    I got the same kind of problem when migrating from Workbench to CubeIDE:

    • project compiled under workbench: everything worked fine
    • project compiled under CubeIDE: error 87 when trying to set the baudrate on a Windows machine.

    I already had memcpy(&dwDTERate,&pbuf[0],4); in CDC_SET_LINE_CODING case, which was enough under workbench.

    In order to get the same project working on CubeIDE, it has been necessary to change the definition of dwDTERate from uint32_t to uint_64t, changed the size of the memcpy from 4 to 7, and added memcpy(&pbuf[0],&dwDTERate,7); back in CDC_GET_LINE_CODING case

    Thanks for the discussion who helped me focus on where the problem was...

    JYL