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.

AM2434: tiny-USB Full Speed Mode Question

Part Number: AM2434

Tool/software:

Hi experts,

I referenced the issue - AM2434: tiny-USB Module Application affect the others IRQ trig timing to change the tiny-usb to Full Speed Mode.

However, I encountered an issue: after my program uses M4-SPI communication to operate the external FRAM, I found that even after power reset the system, the USB can no longer communicate with the PC (even the COM port is not recognized in the Device Manager).

However, if I reflash the High-Speed Mode setting, the USB can communicate with the PC again. Then, I reflash the Full-Speed Mode setting, the USB still cannot communicate with the PC. 

Could this issue be caused by the M4 core mistakenly modifying something register, forcing USB communication in Full-Speed Mode to be disabled? If yes, which register address can check? Or are there other possible causes for this issue?

I would appreciate insights from the experts on this matter. Thank you!

Regards

Bolt

  • Hi Bolt,

    Can you please check difference in the values of USB_STS, USB_CONF, EP_STS and EP_CFG register for USB success and failure case?

    Please share the value of above registers for both cases.

    Regards,

    Tushar

  • Hi Tushar,

    Sorry delay to response.

    Because I cannot find these registers.

    Can you give me the physical address number of USB_STS, USB_CONF, EP_STS and EP_CFG register ?

    I will use JTAG to check the memory address by memory browser.

    Regards

    Bolt

  • Hi Bolt,

    The base address for USB register are: USB_STS (0xF420004), USB_CONF (0xF420000), EP_STS (0xF42002C), EP_CFG(0xF420024). 

    Regards,

    Tushar

  • Hi Tushar,

    First, I checked the circuit board where the tiny USB could not use full-speed mode.

    1. High-speed mode connected to the PC successfully – recorded the registers.

     

    2. Full-speed mode did not connect to the PC – recorded the registers.

    I found that the values of the registers were not constant, so I recorded them four times.

    Next, I checked the circuit board where the tiny USB could successfully use full-speed mode to connect to the PC

     

    Please help me verify these registers and provide some solutions so that I can make the problematic circuit board successfully use Full-Speed mode again. Thank you.

    Regards

    Bolt

  • Hi Bolt,

    I think the register values are continuously changing when you have captured it. I was asking to have a exact register value when the error happens but looks like it is not possible to capture this using Memory Browser view in CCS.

    Can you please try to capture the USB trace using USB analyzer tools and share with us to narrow down the cause of failure?

    When the USB device is not detected by the host PC, are you seeing any notification like "USB device not recognized"?

    Regards,

    Tushar

  • Hi Tushar,

    Thanks for your suggest.

    When USB connect to the PC, I can't see any information from the Device Manager on PC, including  "USB device not recognized".

    Could you provide the physical meaning of some related register values so that we can try to debug the issue ourselves first?

    Regards,

    Bolt

  • Hi Bolt,

    Could you provide the physical meaning of some related register values so that we can try to debug the issue ourselves first?

    Can you try once enabling the USB logs and compare the logs for both success and failure case?

    Please refer USB_LOGs 

    Regards,

    Tushar