Hi:
The sdk "ti-processor-sdk-rtos-j721e-evm-07_03_00_07" and APP "vision_apps" are depolyed on TDA4VM with QNX rtos.
On C66 there are two tasks registed, one is "tivxRegisterImgProcTargetC66Kernels()" which is provided by sdk with default settings, the other is a user-defined kernels and triggered by remote service. They worked well when separately scheduled.
When scheduled at the same time, I found that the task priority of remote service is higher than tivx kernels so that it will interrupt tivx kernels. I want they are of the same priority and run on C66 serially. Then I try the following :
1 In " ti-processor-sdk-rtos-j721e-evm-07_03_00_07\vision_apps\kernels\img_proc\c66\vx_image_preprocessing_target.c" I use "#define DISABLE_INTERRUPTS_DURING_PROCESS" and the "HwiP_disable()" is called, but it does not work. The tivx kernel is still interrupted by remote service on C66.
2 In "ti-processor-sdk-rtos-j721e-evm-07_03_00_07\vision_apps\utils\remote_service\src\app_remote_service.c" I changed the task priority in function "appRemoteServiceInit(app_remote_service_init_prms_t *prm)" around line "455". The default value of APP_REMOTE_SERVICE_RX_TASK_PRI is 10. I tried twice, once changed to 15, another changed to 8. It also does not work. The tivx kernel is still interrupted by remote service on C66.
So my question is that:
If I write a user-defined kernels on C66/C71 and triggered by remote service, how to change the task priority on DSP RX tasks?
What is the default priority of tivx kernels? How to change it?
Is there a safe method to disable all interrupts on DSP for a while?
Thx a lot!
Best regards!