HOWTO: Start S32 Debugger on an ISP Application Project with S32 Debug Probe

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HOWTO: Start S32 Debugger on an ISP Application Project with S32 Debug Probe

HOWTO: Start S32 Debugger on an ISP Application Project with S32 Debug Probe

1) Prepare the evaluation board hardware

  • You can use the S32 Debug Probe to download code to target
  • Connect S32 Debug Probe to S32V234 EVB2 using JTAG connector
  • Connect S32 Debug Probe to PC via USB cable OR ethernet (if connected via ethernet, then USB power cable must also be connected)
  • Connect the S32V234 EVB2 to PC via ethernet (typically via LAN)
  • Connect power cable to evaluation board and switch on the power

 

pastedImage_1.png

 

2) Build the project using the A53 build option.

3) The project is now built, and the ELF file is ready to be loaded to the EVB for execution. Before a debug session can be started, we must complete HOWTO: Setup A Remote Linux Connection in S32DS (S32V234).

Start A53 Debug

4) Select the debug drop-down menu and click Debug Configurations

 

pastedImage_3.png

 

5) Make sure the '{project_name}_Remote_Linux' debug configuration is selected and the Connection (see step 3) is selected (points to the IP address of your EVB). Click Debug

 

pastedImage_4.png

 

6) The first time you connect to a new IP address (i.e. the first time you debug after creating a new workspace), you will receive a warning message, Click Yes and proceed.

 

pastedImage_1.png

 

The executable file is copied to Linux file system and gdbserver starts.

 

You may get an error message on the first try, this is normal. Just try it again and it will work.

pastedImage_1.png

7) Once the Linux GDB has started on A53 core and the initial break point is reached in main(), it is almost ready for to start debug on ISP. Click Resume as the A53 must be running before we can attach the ISP debug thread.

pastedImage_6.png

8) Return to the Debug Configurations menu and locate the ISP debug configuration. You will see a debug configuration within the 'S32 Debugger' group (in our example, isp_sonyimx224_csi_dcu_mipi_simple_IPUS0 as shown below). This is the debug configuration we will use, however, it will require some setup.

 

pastedImage_7.png

 

9) You should notice the error message at the top of the window, just below the title and a red 'X' on the Debugger tab. Click on the Debugger tab to select it. We must setup the Debug Probe Connection before we can proceed.

pastedImage_9.png

There are two options:

  • Ethernet
  • USB

pastedImage_4.png

 

If connecting the Probe via Ethernet, please refer to the Quick Start Guide or S32 Debug Probe User Guide provided with the S32 Debug Probe for instructions on how to connect it and determine the Hostname or IP address.

 

pastedImage_6.pngpastedImage_7.png

 

If connecting the Probe via USB, then the COM port will appear in the Port selection setting. If you have more than one S32 Debug Probe connected, you will need to determine which COM port is the correct one, otherwise, only the COM port for your S32 Debug Probe will appear.

 

pastedImage_5.png

10) This is already done for our example, but for your application, it may be necessary to setup the symbols for the ISP engine. Go to the Startup tab and:

   a) Check the box for 'Load symbols'

   b) Select the option for 'Use file', click Workspace... and locate the object file (.opius) for the ISP engine you wish to debug.

 

pastedImage_3.png

11) Click Apply then Debug. It may take a few moments for the ISP core debug to launch.

 

pastedImage_4.png

12) Wait for the ISP debug launch to complete. You may notice the A53 thread has terminated. This is normal and expected since the camera input cannot be suspended. When the launch completes, the context of the Debug window will switch to the ISP debug thread.

pastedImage_10.png

13) Enable Instruction Stepping mode and then step one time to load the object file which was setup in step 6.

pastedImage_11.png

pastedImage_12.png

pastedImage_14.png

14) The ISP debugging is now running and you can step through the ISP engine, look at registers, set a break point, etc. Note: only one hardware break point is supported for ISP.

No ratings
Version history
Last update:
‎03-11-2019 03:01 PM
Updated by: