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.

DSP freezes + Alloc



Hello,

 

It has been over a day i am facing an issue, that i start believing i cant resolve.

 

Board: EVM6446

 

While creating an XDAIS algorithm, in the alloc phase when i try to alloc an extra buffer, besides the ones i had before, the program freezes in the DSP.

 

 

Other memTabs....

 

memTab[IMG_BUF].size        = (params->frame_size*params->imgformat) * sizeof(XDAS_UInt8);
memTab[IMG_BUF].alignment   = 8;
memTab[IMG_BUF].space       = IALG_EXTERNAL;
memTab[IMG_BUF].attrs       = IALG_PERSIST;

 

frame size and imgformat are ok, because i used them on other memtabs.

Everything compiles ok, and then when starting the application the DSP freezes in this state:

 

1,158,342us: [+0 T:0x411ee490] CV - VISA_create(0x59f48, 'background_subtraction', 0x411a6194, 0x3712, 'ti.sdo.ce.universal.IUNIVERSAL')
@1,158,563us: [+0 T:0x411ee490] CV - VISA_create2(0x59f48, 'background_subtraction', 0x411a6194, 0x10, 0x3712, 'ti.sdo.ce.universal.IUNIVERSAL')
@1,158,777us: [+0 T:0x411ee490] CE - Engine_createNode(0x59f48, 'background_subtraction', 3712, 0x411a6194, 0x10, 0x411a60e4)
@1,158,949us: [+0 T:0x411ee490] CE - Engine> allocNode Enter(engine=0x59f48, impId='background_subtraction')
@1,159,137us: [+0 T:0x411ee490] CE - Engine> allocNode(). Calling Comm_create(gppfromnode_868_1, 0x5a2c0, NULL)

 

The next instruction should be similar to this but it never gets there.

CE - Engine_createNode> created node(stdIn=0x2, stdOut=0x10001, msgq=0x5a2e0, algName='background_subtraction', rmsNode=0x8fa04f60, algHandle=0x8fa05058)

 

I have created the server from the genserverwiz and with the default attributes.

 

Anyone ever faced this or have an idea of what may be the source of the problem?

 

Best Regards

 

 

 

 

  • Hello again,

    i have found the source of the problem. Has usual it was a very simple thing.

    I was not implementing the numAlloc function of XDAIS, and so, the default number of memRecs was only 4.

    Anyway i will keep the post if someone else gets into this.

     

    P.S. Feel free to delete if no value is seen in this thread.

     

    Best Regards

     

    Filipe