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.

[参考译文] TM4C1233H6PGE:USB CAN't 枚举

Guru**** 2834805 points

Other Parts Discussed in Thread: TM4C1233H6PGE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602590/tm4c1233h6pge-usb-can-t-enumerate

器件型号: TM4C1233H6PGE

亲爱的伙计们、  

我尝试使用 USB2517+ TI TM4C1233H6PGE 来开发控制系统。

硬件连接是 USB2517 下行端口 6、连接到 TM4C1233H6PGE USB、即连接到 TM4C1233H6PGE GPIOL PIN6 和引脚 7。 我认为 TM4C1233H6PGE 将用作集线器 USB2517 的 CDC 器件。  USB2517 使用默认配置模式。

我使用以下固件来配置和初始化 USB。 USB 器件禁用器遵循 TI 示例且未进行任何修改。  但是、我在 PC 上看不到它枚举。  确保硬件工作正常。

Void USBInit ( Void )

G_ui32Flags = 0;

G_bUSBConfigured = false;

 //将时钟设置为在 50MHz 处从 PLL 运行

 SysCtlClockSet (SysCtl_SYSDIV_4 | SysCtl_USE_PLL | SysCtl_OSC_MAIN | SysCtl_XTAL_16MHz);

SysCtlPeripheralEnable (SysCtl_Periph_USB0);

SysCtlPeripheralEnable (SysCtl_Periph_GPIOL);

GPIOPinTypeUSBAnalog (GPIO_POLL_BASE、GPIO_PIN_6 | GPIO_PIN_7);

//初始化发送和接收缓冲区。

USBBufferInit (&TxBuffer);

USBBufferInit (&RxBuffer);

//将 USB 堆栈模式设置为器件模式而不进行 VBUS 监控。

USBStackModeSet (0、eUSBModeForceDevice、0);

//将我们的设备信息传递到 USB 库并将设备置于总线上。

USBDCDCInit (0、&g_sCDCDevice);

}

原因应该是什么?  

非常感谢!

John

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    亲爱的伙计们、

    它现在可以正常工作。  请忽略此问题!

    此致、

    John