Part Number: TDA4VM
Hello, there.
I use PSDK RTOS and PSDK QNX. And I added my TIOVX custom kernels to ${PSDK_RTOS_PATH}/vision_apps/kernels using PyTIOVX as follow:
from tiovx import *
code = KernelExportCode("my_custom_kernel", "r5f", "CUSTOM_APPLICATION_PATH")
code.setCoreDirectory("r5f")
kernel = Kernel("my_custom_kernel")
kernel.setParameter(Type.USER_DATA_OBJECT, Direction.INPUT, ParamState.REQUIRED, "configuration", ['my_custom_kernel_input_t'])
kernel.setParameter(Type.USER_DATA_OBJECT, Direction.OUTPUT, ParamState.REQUIRED, "recognition_result", ['my_custom_kernel_output_t'])
kernel.setTarget(Target.IPU2)
code.export(kernel)
And I confirmed that the module was loaded and the Create(), Process(), Delete() callbacks were executed normally.
After OSPI flashing in SD boot mode, the sample app was executed in OSPI boot mode.
In addition, by adding the <stdio.h> header to Process() callback, (my_custom_kernel/r5f/my_custom_kernel_taget.c), I also confirmed that files can be read and written using File I/O APIs such as fopen, fwrite, fread, and fclose.
But, I don't know where those files are written and read.
How can I read/write file in TIOVX User Kernels(R5F)? And where are those files and how I can access them?