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

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

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

HOWTO: Start Debug on an ISP Application Project with S32 Debugger and 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 EVB 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 EVB to PC via ethernet (typically via LAN)
  • Connect power cable to evaluation board and switch on the power

 

pastedImage_1.png

pastedImage_1.png

 

2) Build the project using the A53 build option.

3) Start debug on A53 core. Project is now built, ELF file is read to be loaded to EVB for execution.

4) Before a debug session can be started, we must complete HOWTO: Setup A Remote Linux Connection in S32DS for Vision.

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

 

pastedImage_5.png

 

6) Make sure the Debug_Remote_Linux debug configuration is selected and the connection setup in step 4 is selected (points to the IP address of your EVB). Click Debug

 

pastedImage_1.png

 

7) The first time you connect to a new IP address (i.e. the first time you debug after booting the board), 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

8) 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_2.png

9) Locate the ISP debug configuration from the Debug Configurations menu. You will see a debug configuration within the 'S32 Debugger' group (in our example, isp_sonyimx224_csi_dcu_ISP as shown below). This is the debug configuration we will use, however, it will require some setup.

 

pastedImage_1.png

 

10) 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_3.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

11) 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

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

 

pastedImage_4.png

13) 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_4.png

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

pastedImage_5.png

15) 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:
‎10-14-2018 05:11 PM
Updated by: