1) Prepare the evaluation board hardware
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
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
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.
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.
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.
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.
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.
There are two options:
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.
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.
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.
12) Click Apply then Debug. It may take a few moments for the APEX core debug to launch.
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.
14) Enable Instruction Stepping mode and then step one time to load the object file which was setup in step 6.
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.