Skip to content

Debugging with nSIM

anthony-kolesov edited this page Dec 17, 2014 · 20 revisions
  1. Creating C project

![C Project for nSIM debugging](images/C Project for nSIM debugging.png)

_C Project for nSIM debugging_
  1. Choosing nSIM gdbserver under Debug Configuration

    ![Choosing nSIM on debug tab](images/Choosing nSIM on debug tab.png)

    Choosing nSIM on debug tab

    In this tab, user need to indicate correct properties file/TCF file for current CPU core.

    ![Choosing proper properties file for nSIM](images/Choosing proper properties file for nSIM.png)

    To see output from the target application, go to Common tab and check "Allocate console (necessary for input)".

    ![Check “Allocate console” in Common Tab] (images/Check “Allocate console” in Common Tab.png)

    Check “Allocate console” in Common Tab

    Choosing proper properties file for nSIM

  2. Debugging an ARC EM C project

To debug application using nSIM, press "Debug" button of IDE.

![Start nSIM gdbserver debugging](images/Start nSIM gdbserver debugging.png)

Start nSIM gdbserver debugging.jpg

![Debugging with nSIM gdbserver](images/Debugging with nSIM gdbserver.png)

Debugging with nSIM gdbserver

![Debug Window](images/Debug Window.png)

Debug Window

![Open nSIM gdbserver properties](images/Open nSIM gdbserver properties.png)

Open nSIM gdbserver properties

![nSIM gdbserver properties](images/nSIM gdbserver properties.png)

nSIM gdbserver properties

![nSIM gdbserver output in console](images/nSIM gdbserver output in console.png)

nSIM gdbserver output in console

Clone this wiki locally