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:
- 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.
- 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.
- 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.
- Set a breakpoint at
USB_hostDetectGpioIsrFxn() to make sure the Interrupt is generated and the ISR is
triggered.
- While running the application, connect
and disconnect the USB cable a few times to check if the ISR is consistently hit.
- 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)