Intel® System Debugger User Guide
Prepare the Target
If you want to debug the application that is already stitched in the Intel® Programmable Services Engine (Intel® PSE) firmware or a prebuilt binary, you need to point to that binary instead of the Zephyr* Application. Commonly, you can find this binary at
If you want to debug another application, clean the
Launch the Debugger
Launch the GDB* debug server located at
/opt/intel/oneapi/system_debugger/<version>-nda/system_debug/gdbserverproxy/ in a new terminal../start_gdbserverproxy.sh
Ensure that the
gdbserver successfully detects your target.Launch Intel® System Debugger NDA.
In the Project Explorer view, right-click on your application project and select Debug As > Debug Configurations.
In the opened dialog box, create a new Zephyr* debug configuration by double-clicking Zephyr Hardware Target.
Open the Main tab and apply the following configurations:
Specify the name of the project to debug.
In the C/C++ Application field, select the binary to debug. By default, the Zephyr* application binary is selected.
If you want to change the binary, click Browse and locate the new one (for example:
<path-to-PSE>/pse-dev-code-base/ehl_pse-fw/build/zephyr/zephyr.elf ).Select Do not flash hardware target and Do not start debug server.
Click Apply.
Switch to the Debugger tab.
Ensure that the path in GDB Command points to the proper
gdbserver from Zephyr* SDK. Example:<path-to-zephyr-sdk>/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb Otherwise, click Browse and navigate to the proper location.
Add the following arguments to the command line:
-ex 'set arm force-mode thumb' .In JTAG Device drop-down list, select OpenIPC. Host name
localhost and port8086 must appear automatically.If OpenIPC is not in the drop-down list, upgrade the plugin.
Click Apply to save tab changes.
Switch to the Startup tab:
Check Load image box and select Use project binary option.
Note: If you want to debug an application that is already stitched to Elkhart Lake, uncheck the Load Image box.
Depending on the binary configuration, check other boxes as follows:
If the binary was built with symbols and source code (debug configuration), check the Load symbols box.
Select the Use project binary option and ensure that it points to the same binary as the one in Main tab. If you want to debug the binary from Zephyr* application, it will point to
zephyr/zephyr.elf . Otherwise, it will be similar to the one under the Load image box.If the binary was built without symbols and source code (release configuration), leave the Load symbols checkbox empty.
Click Apply to save tab changes.
Click Debug.
Now, the target connection is established. In the