I can successfully run gdbserver on the AM3517 Experimenter over TCP on port 10000.
However, eth0 is needed in my application so I have a need to use one of the serial ports for gdb.
I tried /dev/ttyS2 (console) as below - see error below
root@am3517-evm:~# gdbserver /dev/ttyS2 /usr/bin/HelloWorld.elf
Process /usr/bin/HelloWorld.elf created; pid = 1509
Remote debugging using /dev/ttyS2
readchar: Socket operation on non-socket
Remote side has terminated connection. GDBserver will reopen the connection.
Remote debugging using /dev/ttyS2
...
I also tried /dev/ttyS0 and /dev/ttyS1 (are these the USB ports?) with the same error.
There appears to be no man page for gdbserver so not sure if I am setting something wrong.
Any suggestions on how to get gdbserver to work over serial?