To debug an application on a target running Linux:

Set the connection type to “Serial”. Set the speed to “115200”, data bits to “8”, stop bits to “1”, and parity to “None”.
Then specify the destination you want the terminal to connect to, for instance, the USB port on your computer to which the board is connected.
ifconfigThe output includes the section for
Ethernet link. For example, this section can look as
follows:root@s32v234evb:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:c3:12:34:22
inet addr:10.222.24.206 Bcast:10.222.24.255 Mask:255.255.255.0
inet6 addr: fe80::21b:c3ff:fe12:3422/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:709 errors:0 dropped:1 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:91479 (89.3 KiB) TX bytes:1512 (1.4 KiB)
The
inet addr parameter in this section is the IP
address of the target.


| Setting | Description |
|---|---|
| Stop on startup at | Specify the location in code where the debugger will place the first breakpoint and stop. Default: main. |
| Debugger Options: Main tab | Specify the GDB debugger settings.
|
| Debugger Options: Shared Libraries tab | Specify the paths on the target host where the GDB
debugger will search for shared libraries with symbols. To
adjust the priority of a search path, use the
Up and
Down buttons. Load shared library symbols automatically: Select this option to enable the GDB debugger to automatically find the local copy of the library and load its symbols unless the remote path of the respective library is specified in the list. |
| Debugger Options: Gdbserver settings tab | Specify the settings of the gdbserver program running on
the target host.
|