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.

EK-TM4C123GXL: Techniques for debugging TIva in usb mode?

Part Number: EK-TM4C123GXL

I am trying to get TIva to act as a sound card but because there's not an example that I could tinker with, I resorted to converting the usb device bulk example into an audio device. However, I can't tell, what is really going on when I change various things. At the moment, I am just trying to get the TIva recognised as an audio device. I am looking for some tips on how to find out what's going, whether that is done through an LED or some uart interface, I just don't have the creativity at the moment to come up with a good tool. Also, if anyone has any literature for implementing a usb audio device, it would be very much appreciated. Thank you very much.

  • Hello Jan,

    Our USB Library User's Guide Section 2.3 covers some details on audio device, have you referred to that at all? It would be the best documentation to start with and follow www.ti.com/.../spmu297d.pdf

    Also while quite old, you may want to refer to some E2E posts from back in the Stellaris days as well, this post has some info and links to another post where a user was able to create a USB audio device: e2e.ti.com/.../1058971

    As far as debugging, typically for USB if you are having issues with getting it recognized, then you would need a USB analyzer in order to view the packets to/from the PC to understand what is going wrong. This way you can see error message details etc.

    If that isn't possible, then UART output is the best option, where you would output messages for errors received and what details you can about them, but that may require additional work to put the UART debug outputs in place.
  • Hi Ralph,

    thank you for the quick answer. I am working with the USB library documentation and it is sort of helpful but because it doesn't go in depth, it's difficult for me to judge what is exactly wrong with my code. Moreover, I am working with the code from the Stellaris project you posted and it is what led me to make this post. Frankly, I am a newbie and quite dense.

    Through some more googling, I did manage to get my machine to notice that there is a usb device plugged in, albeit it does not recognise what it is.

    Do you have any suggestions for a USB analyzer?

    Kind regards,
    Jan
  • Hi Jan,

    Unfortunately I don't really have any suggestions for USB analyzers, there are many out there and I don't have any in particular that I would recommend over others.

    Another useful resource that I leveraged a lot while ramping on USB is this website (link goes to Descriptors but there are many useful pages there): www.beyondlogic.org/.../usb5.shtml

    As far as documentation goes, unfortunately audio device documentation is a bit of gap as we don't have a TivaWare example. It has come up very rarely (as evidenced by needing to go back to Stellaris days to find such a discussion...) which is why the time investment into crafting an example has not been taken.
  • Yea, I noticed that my application is very much an edge case. Thank you for the help anyway :)