This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5510 USB不识别

插上USB开机,USB能够正常的识别和读写。但是开机后插拔USB PC端就提示"无法识别的USB设备",用USB监控软件查看,USB根本没有去进行枚举操作,但是下位机可以通过USB插上数据线电进入到    case USBVECINT_PWR_VBUSOn:

     PWRVBUSonHandler();

     if (wUsbEventMask & kUSB_VbusOnEvent)

     {

         bWakeUp = USB_handleVbusOnEvent();

     }

但是后续就不执行了,其他操作,请问如何解决

  • 枚举是由主机发起的,在你的应用中,枚举是由PC发起的,没有枚举操作是指MSP430不响应枚举还是PC就没有发起枚举操作。

  • 看一下你的DCO是否有被使用,如果DCO没使用的话,有可能造成USB的CLK初始化失败.

    具体参见官网的勘误表 USB8的描述:

    If the DCO is not used or does not source any clock in the system, the PLL may not

    initialize properly, leading to a "bus error" NMI when the CPU attempts to access USB

    memory. Under certain conditions, the PLL requires the DCO to be active in order to

    initialize properly. If any of the system clocks (MCLK, SMCLK, ACLK) are derived from

    the DCO during PLL initialization, this condition is satisfied and the PLL initializes in a

    stable manner.