We have installed the requirement components in "Complete C/C++ Embedded Development Environment For ARM"
It's time to debug our application on an embedded hardware.
In this way we can debug our application on the selected hardware which is connected to the PC via serial port or Ethernet.
Open Eclipse, write click on the selected project,select Debug As, Debug configuration,
Write click on Zylin Embedded debug(Native) and make a new configuration.
Open the Debugger tab and choose arm-eabi-gdb as your GDB debugger, as we are debugging in eCos.
Go to command tab and write the following for command
target remote /dev/ttyS0 (according to your serial address, this would select com1)
load (your project path)
If the hardware is connected to the PC via Ethernet, target remote command would be,
target remote localhost:port number
Click Apply and Debug.
No comments:
Post a Comment