Vision Apps User Guide
C7x Kernel Application

Introduction

This application shows how to write and run a C7x target kernel and integrate with OpenVX. The demo application adds two 8b grayscale image and write the output to another 8b grayscale image.

Supported plaforms

Platform Linux x86_64 Linux+RTOS mode QNX+RTOS mode SoC
Support YES YES YES J721e

Data flow

vx_app_c7x_data_flow.jpg
Data Flow

Steps to run the application on J721e EVM (Linux + RTOS mode)

  1. Build the application and related libraries as mentioned in Build Instructions for Linux+TI-RTOS mode
  2. A sample "app_c7x.cfg" for C7x Kernel Application is provided under "/opt/vision_apps/" on the rootfs partition. Update paths and other fields if necessary.
  3. Run the app as shown below
    cd /opt/vision_apps
    source ./vision_apps_init.sh
    ./run_app_c7x.sh
  4. Output will be generated as "output_file" specified in app_c7x.cfg file
  5. View the output image in any image viewer

Steps to run the application on J721e EVM (QNX + RTOS mode)

  1. Build the application and related libraries as mentioned in Build Instructions for QNX+TI-RTOS mode
  2. A sample "app_c7x.cfg" for C7x Kernel Application is provided under "/ti_fs/vision_apps/" on the boot partition. Update paths and other fields if necessary.
  3. Run the app as shown below
    cd /ti_fs/vision_apps
    . ./vision_apps_init.sh
    ./run_app_c7x.sh
  4. Output will be generated as "output_file" specified in app_c7x.cfg file
  5. View the output image in any image viewer

Steps to run the application on PC Linux x86_64

  1. Build the application and related libraries as mentioned in Build Instructions for PC emulation mode
  2. A sample "app.cfg" for C7x Kernel Application is provided under "${PSDKR_PATH}/vision_apps/apps/basic_demos/app_c7x_kernel/config" folder.Update paths and other fields if necessary.
  3. Run the app as shown below
    cd ${PSDKR_PATH}/vision_apps/out/PC/x86_64/LINUX/$PROFILE/
    ./vx_app_c7x_kernel --cfg ${PSDKR_PATH}/vision_apps/apps/basic_demos/app_c7x_kernel/config/app.cfg
  4. Output will be generated as "output_file" specified in app.cfg file
  5. View the output image in any image viewer

Sample Output

Shown below is a example input and its corresponding output

vx_app_c7x_in1.png
Input 1
vx_app_c7x_in2.png
Input 2
vx_app_c7x_out1.png
Output = Input 1 + Input 2