--- vision_sdk/apps/src/rtos/usecases/tidl/chains_tidl.c	2017-07-06 12:13:05.000000000 +0300
+++ vision_sdk/apps/src/rtos/usecases/tidl/chains_tidl_tda3.c	2017-08-15 17:10:11.372783200 +0300
@@ -68,8 +68,7 @@
 #include "itidl_ti.h"
 #include <src/rtos/utils_common/include/utils_cbuf_ocmc.h>
 #include <src/rtos/utils_common/include/utils_tsk.h>
-#include "UsecaseDsp/chains_tidlDsp_priv.h"
-#include "UsecaseEve/chains_tidlEve_priv.h"
+#include "UsecaseDsp_tda3/chains_tidlDsp_priv.h"
 #include "chains_tidl.h"
 
 /*******************************************************************************
@@ -97,7 +96,7 @@
 "\n ===================="
 "\n "
 "\n 1: DSP"
-"\n 2: EVE"
+"\n 2: EVE (is not supported)"
 "\n "
 "\n Enter Choice: "
 "\n "
@@ -149,6 +148,9 @@
 {
     Int32 fp;
     UInt32 readSize;
+
+    Vps_printf(">>>>>> tidlReadNet()");
+
     sTIDL_Network_t *net = &pObj->pAlgCreateParams->net;
 
     fp = ChainsCommon_Osal_fileOpen(
@@ -186,6 +188,8 @@
     Int32 i;
     sTIDL_Network_t *net = &pObj->pAlgCreateParams->net;
 
+    Vps_printf(">>>>>> tidlAllocNetParamsMem()");
+
     for(i = 0; i < net->numLayers; i++)
     {
         if((TIDL_ConvolutionLayer == net->TIDLLayers[i].layerType) ||
@@ -304,6 +308,8 @@
     UInt32 dataSize, readSize;
     sTIDL_Network_t *net = &pObj->pAlgCreateParams->net;
 
+    Vps_printf(">>>>>> tidlFillNetParamsMem()");
+
     fp = ChainsCommon_Osal_fileOpen(
                         pObj->paramFileName,
                         CHAINSCOMMON_OSAL_FILEMODE_READ_BIN);
@@ -431,17 +437,23 @@
 static Void tidlInit(chains_tidlAppObj *pObj)
 {
     /* Read the network file */
+    Vps_printf(">>>>>> tidlInit(): call 'tidlReadNet'");
     tidlReadNet(pObj);
 
     /* Allocate memory for the net */
+    Vps_printf(">>>>>> tidlInit(): call 'tidlAllocNetParamsMem'");
     tidlAllocNetParamsMem(pObj);
 
     /* Fill the new parameters */
+    Vps_printf(">>>>>> tidlInit(): call 'tidlFillNetParamsMem'");
     tidlFillNetParamsMem(pObj);
 
     /* Init all the 3 instances of the OCMC */
+    Vps_printf(">>>>>> tidlInit(): call 'Utils_cbufOcmcInit(UTILS_OCMC_RAM1)'");
     Utils_cbufOcmcInit(UTILS_OCMC_RAM1);
+    Vps_printf(">>>>>> tidlInit(): call 'Utils_cbufOcmcInit(UTILS_OCMC_RAM2)'");
     Utils_cbufOcmcInit(UTILS_OCMC_RAM2);
+    Vps_printf(">>>>>> tidlInit(): call 'Utils_cbufOcmcInit(UTILS_OCMC_RAM3)'");
     Utils_cbufOcmcInit(UTILS_OCMC_RAM3);
 }
 
@@ -462,6 +474,8 @@
     UInt32 dataSize;
     sTIDL_Network_t *net = &pObj->pAlgCreateParams->net;
 
+    Vps_printf(">>>>>> tidlFreeNetParamsMem()");
+
     for(i = 0; i < net->numLayers; i++)
     {
         if((TIDL_ConvolutionLayer == net->TIDLLayers[i].layerType) ||
@@ -540,6 +554,8 @@
     char *pArg, *pVal;
     UInt32 numArg = 0;
 
+    Vps_printf(">>>>>> parseCfg()");
+
     fd = ChainsCommon_Osal_fileOpen(
                     TIDL_UC_CFG_FILE,
                     CHAINSCOMMON_OSAL_FILEMODE_READ);
@@ -632,6 +648,9 @@
 */
 Void chains_tidl_CreateApp(chains_tidlAppObj *pObj)
 {
+
+    Vps_printf(">>>>>> chains_tidl_CreateApp()");
+
     switch(pObj->tidlCore)
     {
         case TIDL_CORE_DSP:
@@ -640,7 +659,7 @@
 
         default:
         case TIDL_CORE_EVE:
-            chains_tidlEve_Create(&pObj->eveUcObj, pObj);
+//            chains_tidlEve_Create(&pObj->eveUcObj, pObj);
             break;
     }
 }
@@ -663,6 +682,9 @@
 */
 Void chains_tidl_StartApp(chains_tidlAppObj *pObj)
 {
+
+    Vps_printf(">>>>>> chains_tidl_StartApp()");
+
     Chains_memPrintHeapStatus();
 
     switch(pObj->tidlCore)
@@ -673,7 +695,7 @@
 
         default:
         case TIDL_CORE_EVE:
-            chains_tidlEve_Start(&pObj->eveUcObj);
+//            chains_tidlEve_Start(&pObj->eveUcObj);
             break;
     }
 
@@ -704,8 +726,8 @@
 
         default:
         case TIDL_CORE_EVE:
-            chains_tidlEve_Stop(&pObj->eveUcObj);
-            chains_tidlEve_Delete(&pObj->eveUcObj);
+//            chains_tidlEve_Stop(&pObj->eveUcObj);
+//            chains_tidlEve_Delete(&pObj->eveUcObj);
             break;
     }
 
@@ -737,7 +759,7 @@
 
         default:
         case TIDL_CORE_EVE:
-            chains_tidlEve_printStatistics(&pObj->eveUcObj);
+//            chains_tidlEve_printStatistics(&pObj->eveUcObj);
             break;
     }
 }
@@ -781,6 +803,9 @@
     System_LinkChInfo *pChInfo;
     NullSrcLink_CreateParams *pNullSrcPrm;
 
+
+    Vps_printf(">>>>>> setNullSrcPrm()");
+
     switch(pObj->tidlCore)
     {
         case TIDL_CORE_DSP:
@@ -789,7 +814,7 @@
 
         default:
         case TIDL_CORE_EVE:
-            pNullSrcPrm = &pObj->eveUcObj.NullSourcePrm;
+//            pNullSrcPrm = &pObj->eveUcObj.NullSourcePrm;
             break;
     }
 
@@ -941,25 +966,26 @@
  *
  *******************************************************************************
 */
+/*
 Void chains_tidlEve_SetAppPrms(chains_tidlEveObj *pUcObj, Void *appObj)
 {
     chains_tidlAppObj *pObj = (chains_tidlAppObj*)appObj;
 
-    /* Null Source Parameters */
+    // Null Source Parameters
     setNullSrcPrm(pObj);
 
-    /* TIDL Pre Process */
+    // TIDL Pre Process
     pUcObj->Alg_tidlpreprocPrm.outPad = TIDL_MAX_PAD_SIZE;
     pUcObj->Alg_tidlpreprocPrm.numOutputQueues = NUM_PIPELINES;
     pUcObj->Alg_tidlpreprocPrm.procMode = TIDLPREPROC_LINK_PROCMODE_RGBPAD;
 
-    /*
-     *  Set the TIDL algorithm parameters for all the 'NUM_PIPELINES' instances.
-     *  Make sure to distribute the OCMC instance across the algorithm
-     *  instances like OCMC_1 for TIDL_1 and OCMC_2 for TIDL_2
-     */
+    //
+    //  Set the TIDL algorithm parameters for all the 'NUM_PIPELINES' instances.
+    //  Make sure to distribute the OCMC instance across the algorithm
+    //  instances like OCMC_1 for TIDL_1 and OCMC_2 for TIDL_2
+    //
 
-    /* TIDL on EVE1 */
+    // TIDL on EVE1
     pUcObj->Alg_tidl_1Prm.cacheInvInBuf = 0;
     pUcObj->Alg_tidl_1Prm.cacheWbOutBuf = 0;
     pUcObj->Alg_tidl_1Prm.pAlgCreateParams = pObj->pAlgCreateParams;
@@ -967,7 +993,7 @@
     pUcObj->Alg_tidl_1Prm.currLayersGroupId = TIDL_LAYER_GROUPID_EVE1;
     pUcObj->Alg_tidl_1Prm.ocmcAddr = OCMC_1_BASE_ADDRESS;
 
-    /* Null Link */
+    // Null Link
     if(TRUE == pObj->enableOutFileWrite)
     {
         pUcObj->NullPrm.appCb = dumpOutCb;
@@ -979,6 +1005,7 @@
         pUcObj->NullPrm.appCbArg = NULL;
     }
 }
+*/
 
 /**
  *******************************************************************************
@@ -1002,6 +1029,9 @@
 {
     chains_tidlAppObj *pObj = (chains_tidlAppObj*)appObj;
 
+
+    Vps_printf(">>>>>> chains_tidlDsp_SetAppPrms()");
+
     /* Null Source Parameters */
     setNullSrcPrm(pObj);
 
@@ -1076,10 +1106,10 @@
             case '1':
                 gChainsObj.tidlCore = TIDL_CORE_DSP;
                 break;
-            default:
-            case '2':
-                gChainsObj.tidlCore = TIDL_CORE_EVE;
-                break;
+//            default:
+//            case '2':
+//                gChainsObj.tidlCore = TIDL_CORE_EVE;
+//                break;
         }
 
         /*  TIDL Use case Mode selection
@@ -1153,13 +1183,17 @@
         }
 
         /* TIDL init */
+        Vps_printf(">>>>>> chanis_tidl(): call 'tidlInit'");
         tidlInit(&gChainsObj);
 
+        Vps_printf(">>>>>> chanis_tidl(): call 'chains_tidl_CreateApp'");
         chains_tidl_CreateApp(&gChainsObj);
+        Vps_printf(">>>>>> chanis_tidl(): call 'chains_tidl_StartApp'");
         chains_tidl_StartApp(&gChainsObj);
 
         if(TRUE == gChainsObj.enableOutFileWrite)
         {
+            Vps_printf(">>>>>> chanis_tidl(): gChainsObj.enableOutFileWrite is TRUE");
             /* Wait for processing of all the frames */
             BspOsal_semWait(gChainsObj.eofSem, BSP_OSAL_WAIT_FOREVER);
 
@@ -1174,7 +1208,7 @@
 
                 default:
                 case TIDL_CORE_EVE:
-                    nullSourceLinkID = gChainsObj.eveUcObj.NullSourceLinkID;
+//                    nullSourceLinkID = gChainsObj.eveUcObj.NullSourceLinkID;
                     break;
             }
 
@@ -1195,6 +1229,7 @@
         }
         else
         {
+            Vps_printf(">>>>>> chanis_tidl(): gChainsObj.enableOutFileWrite is FALSE");
             do
             {
                 Vps_printf(tidlRunTimeMenu);
@@ -1218,9 +1253,11 @@
             }while(FALSE == done);
         }
 
+        Vps_printf(">>>>>> chanis_tidl(): call 'chains_tidl_StopAndDelete'");
         chains_tidl_StopAndDelete(&gChainsObj);
 
         /* TIDL DeInit */
+        Vps_printf(">>>>>> chanis_tidl(): call 'tidlDeInit'");
         tidlDeInit(&gChainsObj);
 
         if(TRUE == gChainsObj.enableOutFileWrite)
@@ -1245,6 +1282,7 @@
         }
 
         /* Free the Algorithm create structure */
+        Vps_printf(">>>>>> chanis_tidl(): call 'ChainsCommon_Osal_memFree'");
         ChainsCommon_Osal_memFree(
                     gChainsObj.pAlgCreateParams,
                     sizeof(TIDL_CreateParams));
