TISP User Guide
Ubuntu 22.04 Build Instructions for TISP
Environment Setup
  • Run the executables on EVM using CCS (Code composer studio)
  • The target binaries built are envisioned to run on "C75X_0" of the J722S EVM
  • Setup needed for the compiler for CGT7x
  • Setup PSDK_RTOS_ROOT environment variable
    • export PSDK_RTOS_ROOT=${PSDK_RTOS_ROOT_DIR}
    • Example: export PSDK_RTOS_ROOT=${HOME}/ti-processor-sdk-rtos-j722s-evm-09_02_00_05/
  • Setup MCU_PLUS_SDK_ROOT environment variable
    • export MCU_PLUS_SDK_ROOT=${PSDK_RTOS_ROOT}/${MCU_PLUS_SDK_ROOT_DIR}
    • Example : export MCU_PLUS_SDK_ROOT=${HOME}/ti-processor-sdk-rtos-j722s-evm-09_02_00_05/mcu_plus_sdk_j722s_09_02_00_59/
  • Path setup
    • export PATH=${CGT7X_ROOT}/bin:${PATH}
Build
  • TISP utilizes CMake to build, ensure that system has CMake v3.16.0 or higher
  • Build options:
    • SOC=AM62A/j722s
    • DEVICE=C7504/C7524
    • TARGET_PLATFORM=PC/""
    • KERNEL_NAME
    • BUILD_TEST=1 OR BUILD_EXAMPLE=1 OR AUTO_TEST=1
    • TISP_DEBUGPRINT=1/0
    • CMAKE_EXPORT_COMPILE_COMMANDS=TRUE
    • CMAKE_BUILD_TYPE=Release/Debug
    • AUTO_TEST=1/0 (builds all test cases and libraries)
  • Example CMake commands
    • To build test/FFTLIB/TISP_fft2d_superNode for target on j722s and run performance test cases:
      • cmake -B build -DTARGET_PLATFORM="" -DBUILD_TEST="1" -DKERNEL_NAME="FFTLIB/TISP_fft2d_superNode" -DSOC="j722s" \
        -DDEVICE="C7524" -DTISP_DEBUGPRINT="0" -DALL_TEST_CASES="1" -DCMAKE_EXPORT_COMPILE_COMMANDS="TRUE" \
        -DCMAKE_BUILD_TYPE="Release"
    • To build test/misc/TISP_blockCopy_superNode for host emulation on j722s and with debug print statements
      • cmake -B build -DTARGET_PLATFORM="PC" -DBUILD_TEST="1" -DKERNEL_NAME="misc/TISP_blockCopy_superNode" -DSOC="j722s" \
        -DDEVICE="C7524" -DTISP_DEBUGPRINT="1" -DCMAKE_EXPORT_COMPILE_COMMANDS="TRUE" \
        -DCMAKE_BUILD_TYPE="Release"
    • To build all tests cases and libraries for release for j722s for target
      • cmake -B build -DTARGET_PLATFORM="" -DAUTO_TEST="1" -DSOC="j722s" -DDEVICE="C7524" \
        -DALL_TEST_CASES="1" -DCMAKE_BUILD_TYPE="Release" -DTISP_DEBUGPRINT="0"
    • Then run:
      • cmake --build build -j<num_cores>
Run
  • To run TISP kernels on a PC:
    • bin/Release/test_TISP_<kernel_name>_<device>_x86_64
      OR
      bin/Debug/test_TISP_<kernel_name>_<device>_x86_64
      • Ex:
        bin/Release/test_TISP_and_C7524_x86_64
  • To run TISP kernels for target
    • To reproduce numbers given in the datasheet, run the .out program on the EVM in OSPI NAND Boot Mode