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.

RM46L852: RM46L852 USB Device Driver

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN, TMDXRM46HDK

I'm developing RM46L852PGE Development Kit now. BTW, I have difficulty creating USB device driver code. Actually, I've tried to communicate with USB CCD device by using HALCoGen.

But, it doesn't work. So, I need your help. In fact, my goal is to communicate between Ubuntu PC and a hercules development board(rm46l852pge based) via USB device(NOT USB Host).

However, I don't know how to resolve it. So, I hope you give me a hand. And, can I achieve my goal on the RM46L series?

  • Hi,
    We are reviewing this request internally and will post the results here.
  • Please follow the instructions and detailed steps shown on this page:
    processors.wiki.ti.com/.../HALCoGen_USB_Device_-_driver_&_CDC_Class

    The above instructions are for the RM48x MCU. For RM46x there is a change in the way the 48MHz clock for the USB device peripheral is generated. The difference is shown in the diagram labeled "Mapping of Clock Domains to Device Modules" in the datasheets for both these parts. Please configure the VCLKA3 clock source and the VCLKA3_DIVR divider correctly to generate the 48MHz required for the USB device peripheral.

    Are you working on your own board or one of the Hercules MCU development kits?

    Regards,
    Sunil
  • Hi, Sunil.

    I did try to configure the VCLKA3 clock source and the VCLKA3_DIVR divider correctly to generate the 48MHz as following, but it didn't work at all.

    VCLKA3_Src : PLL2, VCLKA3 Divider : 1 -> VCLKA3_DIVR : 48.000

    After generating a code, I built and executed it. But I couldn't install the driver .inf file. So, I coun't find any port in the device list as following. It is only considered as an unknown device.

    What is it wrong with me? And, if I connect a device between an Ubuntu PC and the TI development board(RM46L Series based), what else is it needed?

    Regards,

    Younghwa.

  • Hi, Sunil.

    I did try to configure the VCLKA3 clock source and the VCLKA3_DIVR divider correctly to generate the 48MHz as following, but it didn't work at all.

    VCLKA3_Src : PLL2, VCLKA3 Divider : 1 -> VCLKA3_DIVR : 48.000





    After generating a code, I built and executed it. But I couldn't install the driver .inf file. So, I coun't find any port in the device list as following. It is only considered as an unknown device.



    What is it wrong with me? And, if I connect a device between an Ubuntu PC and the TI development board(RM46L Series based), what else is it needed?



    Regards,

    Younghwa.
  • Hi Younghwa,

    Your images did not get posted correctly. Which RM46L development board are you using?

    Regards,
    Sunil
  • Hi, Sunil.
    I am sorry for that, but I cannot attach any images due to my company's security policy. :(
    Anyway, I am using a board named "TMDXRM46HDK". It is a RM46L852PGE chipset based development board I bought on TI store.

    Regards,
    Younghwa.
  • Hi, Sunil.
    I've made a connection between a Windows7 PC and a host device on the "TMDXRM46HDK" according to your guide. So, I found a Virtual COM Port on my Windows7 PC. By the way, how can I test USB communication between a host PC and my board? In addition, can you offer me an .inf file for Ubuntu PC?
  • Hi Younghwa,

    You can refer to these examples created by Micrium for USB device/host (You will need to create a login):
    www.micrium.com/.../

    I do not have a .inf file for an Ubuntu PC.

    Regards,
    Sunil