Set up OpenOCD
OpenOCD (Open On-Chip Debugger) is an on-chip debug solution for targets based on the ARM7 and ARM9 family with Embedded-ICE (JTAG) facility. It enables source level debugging with the GDB compiled for the ARM architecture.
To set preferences for OpenOCD:
- Go to Preferences > Devices > Bare Metal.
- Select Add.
- Select OpenOCD.
- In Name, enter a name for the connection.
- In Startup mode, select the mode to start the debug server provider in.
- In Peripheral description file, specify a path to a file that describes the peripherals on the device.
- In Host, select the host name and port number to connect to the debug server provider.
- In Executable file, enter the path to the debug server provider executable.
- In Root scripts directory, enter the path to the directory that has configuration scripts.
- In Configuration file, enter the path to the device configuration file.
- In Additional arguments, enter arguments for the commands.
- In Init commands, enter the commands to execute when initializing the connection.
- In Reset commands, enter the commands to execute when resetting the connection.
- Select Apply to add the debug server provider.
See also How To: Develop for Bare Metal and Developing for Bare Metal Devices.