HOWTO: Create An ISP Project From Existing VSDK Graph in S32DS for Vision

Document created by Mike Doidge Employee on Jul 19, 2017Last modified by Mike Doidge Employee on Apr 4, 2018
Version 5Show Document
  • View in full screen mode

There are a number of existing ISP Graph diagrams provided within the VSDK. It is possible to import them into S32DS for Vision and use them in a new C/C++ project. The steps to do this are detailed in this document.

 

1) Launch S32DS for Vision

2) Select File -> New -> S32DS Application Project or select "S32DS Application Project" from the toolbar.

3) Enter a project name, such as: ISP_ISP_Generic_demo

4) Select 'A53 APEX/ISP Linux'

5) Click Next

 

6) Unselect the APEX2 options and 'ISP Visual Modeling' option.

7) Click Finish

 

 

8) Select File -> New -> S32DS Project from Example or select "S32DS Project from Example" from the toolbar.

 

 

9) Expand 'ISP Graphs' folder. Select isp_generic.

10) Select Finish

 

 

11) Open isp_generic in the project explorer

12) Double-click ISP data flow ; isp_generic. The ISP data flow graph will appear in the editor

 

 

13) Right-click in the ISP data flow window and select Emit As -> Emit Configurations

 

 

14) Select ISP Emitter -> ISP sources isp_generic – isp_generic

15) Select Main -> Output -> Browse Workspace

 

 

16) Choose the new target project ISP_ISP_Generic_demo: A53.

17) Click OK

 

 

18) Write A53_gen to the Sources folder box. This is the folder within the target project that generated code will be stored

 

 

19) Go to the Common tab and click Browse

 

 

20) Select ISP_kernels inside ISP_ISP_Generic_demo:A53 and click OK

 

 

21) Click Apply and Emit. Dialog box will appear when code generation is successful

 

      

 

22) Refresh the project ISP_ISP_Generic_demo

 

 

23) Change to C/C++ perspective, click on ‘C/C++ Development’

 

 

24) Build the project 'ISP_ISP_Generic_demo' for ISP

 

 

25) Open file 'ISP_ISP_Generic_demo/A53_inc/isp_user_define.h' and change '#define __DCU_BPP' to "#undef __DCU_BPP"

26) Using the method detailed in steps 8 - 10, create the example project 'isp_sonyimx224_csi_dcu'. Take from this project the file 'isp_sonyimx224_csi_dcu/A53_src/main.cpp' and use it to replace the file 'ISP_ISP_Generic_demo/A53_src/main.cpp' in the current project. Then make the following modifications: 

 

On line 38, change <#include "mipi_simple_c.h"> to <#include "isp_generic_c.h">.

 

On line 323, change <FDMA_IX_FastDMA_Out> to <FDMA_IX_ISP_OUTPUT>.

 

Please see C:\NXP\S32DS_Vision_v2.0\S32DS\s32v234_sdk\docs\drivers\SDI_Software_User_Guide.pdf for details on what this code is for.

 

27) Select 'ISP_ISP_Generic_demo:A53' in the Project Explorer panel, then Build for A53

 

 

28) Run it remotely on the target using the method from

HOWTO_Create_A53_Linux_Project_in_S32DS_for_Vision.pdf  

29) Should get results similar to this:

 

1 person found this helpful

Attachments

    Outcomes