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.

TDA2XEVM: Dumping metadata buffer to file from TIDL postproc alg link possible?

Hi,

I'm experimenting with the semantic segmentation usecase on BIOS.

I want to dump the metadata buffer input to the alg link "Alg_tidlpostproc (A15)"

Here is the code snippet (in bold) in the AlgorithmLink_tidlpostprocProcess() function in tidlpostprocLink_algPlugin.c where I'm trying to do that:

                        /* Skip input padding */                       
                        inAddr += \                                    
                            (pAlgObj->inWidth * pLinkCreatePrms->inPad) + \                         
                                pLinkCreatePrms->inPad;                

                        /* Color Table look up */                      
                        if((SYSTEM_DF_YUV420SP_UV == pLinkCreatePrms->outDataFormat) ||         
                           (SYSTEM_DF_YUV420SP_VU == pLinkCreatePrms->outDataFormat))           
                        {
                            // Dump metadata buffer
                            Int32 metaFp = ChainsCommon_Osal_fileOpen("metadata.bin", CHAINSCOMMON_OSAL_FILEMODE_WRITE_BIN);
                            ChainsCommon_Osal_fileWrite(metaFp, inAddr,pAlgObj->inWidth*pAlgObj->inHeight);
                            ChainsCommon_Osal_fileClose(metaFp);       
                            /* For YUV format we only dump the UV plane */
                            for (ht = 0;ht < (pLinkCreatePrms->outHeight/2);ht++)                   
                            {                                          
                                for (wd = 0;wd < pLinkCreatePrms->outWidth;wd += 2)                 
                                {                                      
                                    inData = *((UInt8*)inAddr + wd);
                                    *((UInt16*)outAddr565++) = pLinkCreatePrms->colPalette565[inData];
                                }                                      
                                                                       
                                inAddr += (2 * pAlgObj->inWidth);      
                            }                        

When I run the use case I get the following error while I try to open the file for writing:

FILE: ERROR: Could not open FILE !!!

Is file writing on A15 supported (in the case of BIOS)? If yes, is there a way to do it?