Migrating APEX2 application

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.

The following explains how to configure your APEX2 application project.

  1. Click File > Import... > General > Existing Projects into Workspace, then click Next.
  2. Click Browse... and browse to the project location, click OK, select the Copy projects into workspace option, then click Finish.
  3. Remove some build configuration settings:
    1. Right-click the project in the Project Explorer view and click Properties on the context menu.
    2. 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.
    3. 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.
    4. 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.
  4. Replace the Project_Settings/Scripts/gen_apu_load.tcl file with a copy from any APEX2 project created in new S32 Design Studio.
  5. Remove typedefs.h from the A53_inc folder and S32V_APU.lcf from Project_Settings/Linker_Files .
  6. Right-click the project in the Project Explorer view and click SDKs on the context menu. Attach VSDK_MODULE_WIN to all build configurations.
  7. Emit the source code from the updated Visual Graph Tools projects.
  8. If you want to debug your application using APEX2 Emulator, update the debug configuration settings:
    1. Right-click the project in the Project Explorer view and click Debug As > Debug Configurations... on the context menu.
    2. In the left pane, open the configuration under C/C++ Application.
    3. 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.

    4. Go to the Debugger tab and update the GDB debugger location:
      ${S32DS_GCC_TOOLCHAIN_DIR}/gdb.exe