Hi,
I have questions about AM3517EVM.
I recognize that UART3 is used as a debugging port in AM3517EVM.
Is it possible to use USB OTG as a debugging port?
If possible, does user need to make some software or are there any samples?
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.
Hi,
I have questions about AM3517EVM.
I recognize that UART3 is used as a debugging port in AM3517EVM.
Is it possible to use USB OTG as a debugging port?
If possible, does user need to make some software or are there any samples?
Hi,
Yes, it's possible to use a USB connection for debug.
Ideally it's best to use Ethernet as detailed at http://processors.wiki.ti.com/index.php/How_to_Run_GDB_on_CCSv5 but alternatively one can run the g_serial driver on the OTG port to provide a serial connection.
First rebuild the kernel using the instructions in the Sitara Developers Guide. Before building, be sure to enable the g_serial driver by enabling:
Device Drivers ->
USB Support ->
<*> Inventra Highspeed Dual Role Controller (TI, ADI,..)
*** Platform Glue Layer ***
<*> AM35x
Driver Mode (USB Peripheral (gadget stack)
USB Gadget Support ->
<M> USB Gadget Drivers (Serial Gadget (with CDC ACM and CDC OBEX))
Once rebuilt, copy the resulting g_serial.ko module to /lib/modules/2.6.37/kernel/drivers/usb/gadget/. Boot with new kernel. Run 'depmod -a'. Run 'modprobe g_serial'.
At this point you may run 'gdbserver --baud <my_favorite_baud_rate> /dev/ttyG0 <my_binary_to_debug>'
On the host side, plug in a USB cable to the OTG port miniusb. The host's ACM client driver will instantiate a /dev/ttyACM0 serial device. At this point it's possible to execute 'arm-arago-linux-gnueabi-gdb --baud <my_favorite_baud_rate>' on the host. At the command prompt the target can be connected by:
(gdb) target remote /dev/ttyACM0
Alternatively, CCSv5 can be configured to use serial transport rather TCP for Ethernet transport by modifying the debug connection configuration with the values above.
Regards,
Matt
Matt,
Thank you very much.
Our customer are requesting 3 Ethernet port, so I think they would use USB as a debug port.
I'm going to tell my customer the procedure which you showed to me.