- Qt Creator Documentation
- Set up OpenOCD
- Qt Creator 17.0.1

How To

# 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:

1. Go to Preferences > Devices > Bare Metal.
2. Select Add.
3. Select OpenOCD.
4. In Name, enter a name for the connection.
5. In Startup mode, select the mode to start the debug server provider in.
6. In Peripheral description file, specify a path to a file that describes the peripherals on the device.
7. In Host, select the host name and port number to connect to the debug server provider.
8. In Executable file, enter the path to the debug server provider executable.
9. In Root scripts directory, enter the path to the directory that has configuration scripts.
10. In Configuration file, enter the path to the device configuration file.
11. In Additional arguments, enter arguments for the commands.
12. In Init commands, enter the commands to execute when initializing the connection.
13. In Reset commands, enter the commands to execute when resetting the connection.
14. Select Apply to add the debug server provider.

See also How To: Develop for Bare Metal and Developing for Bare Metal Devices.