How to configure IDE IAR for the STLink GDB

IAR Development Environment Settings

You can download the IAR IDE from the official website.

Configuring

Instructions

  1. Open the options window then select the “Debugger” category and select the “GDB Server” driver.
    image
  2. Select the “GDB Server” category and in the “TCP/IP address or hostname [,port]” field specify the IP-address and debugger port for the current session as follows: IP,Port. IP-address and port are shown on the Connection and Tools page.
    image

While using port forwarding, use localhost as the IP-address and serv_port as Port. serv_port is shown on the Connection and Tools page.