tiovx appinit function and appdeinit fuction could not work normally after repeate 125times.
TI's code:
int32_t appInit()
{
int32_t status = 0;
status = appCommonInit();
if(status==0)
{
tivxInit();
tivxHostInit();
}
return status;
}
int32_t appDeInit()
{
int32_t status = 0;
tivxHostDeInit();
tivxDeInit();
appCommonDeInit();
return status;
}
my application code:
for(int r = 0; r < 128; r++){
appInit();
if (status != 0) {
printf("appInit failed !!!\n");
return -1;
} else {
printf("appInit success !!!\n");
}
printf("run times :%d\n", r);
appDeInit();
}
always out of order in 127 times!!!!!!!!!!!!!!!!!!
errro log:
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=4) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
rproc_device_find_for_name: could not open remoteproc node directory for r5f-main-0-core-0
IPC: ERROR: Unable to find rproc_device for rproc CPU [r5f-main-0-core-0]
rproc_device_find_for_name: could not open remoteproc node directory for c66-0
IPC: ERROR: Unable to find rproc_device for rproc CPU [c66-0]
rproc_device_find_for_name: could not open remoteproc node directory for c66-1
IPC: ERROR: Unable to find rproc_device for rproc CPU [c66-1]
rproc_device_find_for_name: could not open remoteproc node directory for c7x
IPC: ERROR: Unable to find rproc_device for rproc CPU [c7x]
REMOTE_SERVICE: Init ... Done !!!
APP: Init ... Done !!!
4438.483359 s: VX_ZONE_INIT:Enabled
4438.483366 s: VX_ZONE_ERROR:Enabled
4438.483370 s: VX_ZONE_WARNING:Enabled
4438.483596 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!!
4438.483617 s: VX_ZONE_INIT:[tivxHostInit:48] Initialization Done for HOST !!!
appInit success !!!
run times :126
4438.483627 s: VX_ZONE_INIT:[tivxHostDeInit:56] De-Initialization Done for HOST !!!
4438.492188 s: VX_ZONE_INIT:[tivxDeInit:111] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
rproc_device_find_for_name: could not open remoteproc node directory for r5f-main-0-core-0
IPC: ERROR: Unable to find rproc_device for rproc CPU [r5f-main-0-core-0]
rproc_device_find_for_name: could not open remoteproc node directory for c66-0
IPC: ERROR: Unable to find rproc_device for rproc CPU [c66-0]
rproc_device_find_for_name: could not open remoteproc node directory for c66-1
IPC: ERROR: Unable to find rproc_device for rproc CPU [c66-1]
rproc_device_find_for_name: could not open remoteproc node directory for c7x
IPC: ERROR: Unable to find rproc_device for rproc CPU [c7x]
REMOTE_SERVICE: Deinit ... Done !!!
IPC: Deinit ... !!!
IPC: DeInit ... Done !!!
MEM: Deinit ... !!!
MEM: Alloc's: 0 alloc's of 0 bytes
MEM: Free's : 0 free's of 0 bytes
MEM: Open's : 0 allocs of 0 bytes

