You can use a project that was created in an earlier version of S32 Design Studio, but it requires changes to the build
configuration settings and the project structure.
Migrating ISP Application Project
The following explains how to configure your ISP application project.
- Click File > Import... > General > Existing Projects into Workspace, then click Next.
- Click Browse... and browse to the project location, click OK, select the Copy projects into workspace option, then click Finish.
- Remove all VSDK specific settings from the build configuration settings:
- Right-click the project in the Project Explorer view and click Properties on the context menu.
- Open C/C++ Build > Settings and remove the following settings for the A53 build configuration:
- Standard S32DS C Compiler/Standard S32DS C++ Compiler > Preprocessor: Remove VSDK_UMAT_USE_OPENCV from the Defined symbols list.
- Standard S32DS C Compiler/Standard S32DS C++ Compiler > Includes: Remove all the ${S32DS_VSDK_DIR} paths from the Include paths list.
- Standard S32DS C++ Linker > Libraries: Remove all libraries from the Libraries and Library search paths lists.
- Click SDKs on the left pane of the project properties, then attach VSDK_MODULE_WIN to the A53 build configuration.
- Remove typedefs.h from the A53_inc folder.
Migrating APEX2 Application Project
The following explains how to configure your APEX2 application project.
- Click File > Import... > General > Existing Projects into Workspace, then click Next.
- Click Browse... and browse to the project location, click OK, select the Copy projects into workspace option, then click Finish.
- Remove some build configuration settings:
- Right-click the project in the Project Explorer view and click Properties on the context menu.
- Open C/C++ Build > Settings and remove the following settings for the A53 and TEST_A53 build configurations:
- Standard S32DS C Compiler/Standard S32DS C++ Compiler > Preprocessor: Clear the Defined symbols and Undefined symbols lists.
- Standard S32DS C Compiler/Standard S32DS C++ Compiler > Includes: Remove all the ${S32DS_VSDK_DIR} paths from the Include paths list.
- Standard S32DS C++ Linker > Libraries: Clear the Libraries and Library search path lists.
- Remove the following settings for the APU build configuration:
- APU C Compiler/APU C++ Compiler > Preprocessor: Clear the Defined symbols lists.
- APU C Compiler/APU C++ Compiler > Includes: Remove all the ${S32DS_VSDK_DIR} paths from the Include paths list and clear the Include files list.
- APU C++ Linker > General: Remove the script file.
- APU C++ Linker > Libraries: Clear the Libraries and Library search path lists.
- Remove the following settings for the EMU and TEST_EMU build configurations:
- Cross G++ Compiler > Preprocessor: Clear the Defined symbols list.
- Cross G++ Compiler > Includes: Remove all paths except the ${ProjDirPath} ones from the Include paths list.
- Cross G++ Linker > Libraries: Clear the Libraries and Library search path lists.
- Replace the Project_Settings/Scripts/gen_apu_load.tcl file with a copy from any APEX2 project created in new S32 Design Studio.
- Remove typedefs.h from the A53_inc folder and S32V_APU.lcf from Project_Settings/ Linker_Files .
- Right-click the project in the Project Explorer view and click SDKs on the context menu. Attach VSDK_MODULE_WIN to all build configurations.
- Emit the source code from the updated Visual Graph Tools projects.
- If you want to debug your application using APEX2 Emulator, update the debug configuration settings:
- Right-click the project in the Project Explorer view and click Debug As > Debug Configurations... on the context menu.
- In the left pane, open the configuration under C/C++ Application.
- In the right pane, go to the Environment tab. Edit the PATH value:
${S32DS_GCC_TOOLCHAIN_DIR};${S32DS_OPENCV_DIR}/x86/mingw/bin
Then select the Replace native environment with specified environment check box. - Go to the Debugger tab and update the GDB debugger location:
${S32DS_GCC_TOOLCHAIN_DIR}/gdb.exe
Migrating APEX2 Graph Project
The following explains how to update your APEX2 graph diagram.
- Click File > Import... > General > Existing Projects into Workspace, then click Next.
- Click Browse... and browse to the project location, click OK, select the Copy projects into workspace option, then click Finish.
- Open the graph diagram.
- In the Palette pane, drag Add Kernels and drop it to the canvas.
- Select the kernel used in your old project. You can start typing the kernel name in the search box or use the filtering button to specify the kernel location. Click OK.
- Remove your old kernel and connect the Input and Output elements with the respective ports of the newly added kernel.
- Repeat the 5-7 steps for each kernel on the diagram.
- Right-click the canvas and click Validate diagram on the context menu. If a validation problem was found, the Problems view displays an error or warning. The element that caused the error is marked on the diagram with a red cross icon, so you can easily find and fix it.
Migrating APEX2 Program Project
The following explains how to update your APEX2 program diagram.
- Click File > Import... > General > Existing Projects into Workspace, then click Next.
- Click Browse... and browse to the project location, click OK, select the Copy projects into workspace option, then click Finish.
- Open the program diagram.
- In the Palette pane, drag Process from Graph and drop it to the canvas.
- Select the updated graph. Click OK.
- Remove your old process and connect the Inlet and Outlet elements with the respective ports of the newly added process.
- Repeat the 5-7 steps for each process on the diagram.
- Right-click the canvas and click Validate diagram on the context menu. If a validation problem was found, the Problems view displays an error or warning. The element that caused the error is marked on the diagram with a red cross icon, so you can easily find and fix it.