SDAA138 September   2025 AM2612

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2USB Host Detection
    1. 2.1 General USB Host Detection Flow
    2. 2.2 AM261x USB Host Detection
  6. 3Hardware Modifications
  7. 4Software Modifications
    1. 4.1 Changes in the USB Synp Driver
    2. 4.2 Changes in the USB Application
    3. 4.3 Steps to Rebuild the USB Driver and Application
      1. 4.3.1 Rebuilding USB Libs
      2. 4.3.2 Rebuilding USB Application
        1. 4.3.2.1 CCS Build
        2. 4.3.2.2 Command Line Build
    4. 4.4 Testing the New Application
  8. 5Summary
  9. 6References

Testing the New Application

After following all the mentioned hardware and software changes, test if the USB host detection is now dependent on the VBUS line. Try the following methods to verify that the USB is working as expected:

  1. Using a logic analyzer or an oscilloscope, probe the GPIO6 pin (or whichever GPIO is used) on the AM261x-LP, power on the Launchpad and connect/disconnect the cable a few times to see the actual GPIO signal being driver by the USB VBUS line.
  2. Configure your AM261x-LP in appropriate bootmode. For testing, TI recommends using the DEV Bootmode or OSPI Bootmode with SBL Null flashed to the AM261x device.
  3. In Code Composer Studio, launch a debug session for a USB application, connect to the R5F Core and load the debug build binary for the USB application.
     Loading the Application to R5_0
              Core Figure 4-12 Loading the Application to R5_0 Core
  4. Set a breakpoint at USB_hostDetectGpioIsrFxn() to make sure the Interrupt is generated and the ISR is triggered.
  5. While running the application, connect and disconnect the USB cable a few times to check if the ISR is consistently hit.
     Application Halted at the GPIO ISR
              When Host Disconnects and Connects Figure 4-13 Application Halted at the GPIO ISR When Host Disconnects and Connects
  6. Every time after reconnecting the USB, check if the USB transfer works. (if CDC application, check if the COM Port communication is functioning. If DFU application does not function, check if the file transfer works as expected)