This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: tiovx initialization stability fault

Part Number: TDA4VM


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

  • Hello,

    I have a few questions for you to help me with an answer:

    1. Which release of the Processor SDK are you using?

    2. I assume in your code, you are setting status equal to appInit and appDeInit when running?

    3. Can you send your full log of all the iterations?  I assume that this is the first failure, correct?

    I tried running this with our upcoming release and I do not see this issue.  There have been some improvements made and this may have fixed this issue.

    Regards,

    Lucas

  • 1.   SDK : psdk_rtos_auto_j7_07_00_00_11

    2.    i have setted status:

    for(int r = 0; r < 128; r++){
            status = appInit();

            if (status != 0) {
                printf("appInit failed !!!\n");
            return -1;
            } else {
                printf("appInit success !!!\n");
            }
            printf("run times :%d\n", r);

            appDeInit();
    }
    3.  first failure occurs in 126(counter start from 0) times and then always fall in fault。
  • Hello,

    I tried this on my end with the release you described and I am not seeing this issue.  Can you confirm that you have not made any changes to the SDK beyond adding this test case?

    Regards,

    Lucas

  • Hello,

         Engineer of TI in China  helped me solve this problem already,thanks!

  • Reproducible on 7.0 SDK.

    Tested on 7.1 SDK. it is not reproducible.