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.

CCS/PROCESSOR-SDK-DRA8X-TDA4X: SemaphoreP_tirtos.c", line 226: assertion failure

Part Number: PROCESSOR-SDK-DRA8X-TDA4X

Tool/software: Code Composer Studio

Hi :

              i     am   using         psdk_rtos_auto_j7_06_01_01_12       i have   run   appUdmaTest         vx_app_tirtos_linux_c6x_1.out      successful     by   JTAG  

             but     i     try    vx_app_tirtos_linux_c7x_1.out          at   this   site    have  same   problem    ( SemaphoreP_pend(ch_obj->lock_sem, SemaphoreP_WAIT_FOREVER);)

            this   is  the   log 

            xdc.runtime.Main: "src/tirtos/SemaphoreP_tirtos.c", line 226: assertion failure      
           xdc.runtime.Error.raise: terminating execution

  • Hi Shuai, 

    Please give more details on how you ran the application. Did you do a reset of the board before running in C7x? Are you running anything on A72? Or is it just RTOS only mode? Ideally you should not see any errors like the one you're seeing, so I strongly suspect it has something to do with how the test was done.

  • Hi :Anand

           1. i   close   ENABLE_IPC      as    i   test    use   JTAG  on   single  core    C66  or   C7X.

          2. in      vision_apps\apps\basic_demos\app_tirtos\tirtos_linux\c7x_1\main     func  appMain     i   call       appUdmaTest();  after   appInit();  

              in    c66   the  same.

         3. i   load   psdk_rtos_auto_j7_06_01_01_12/vision_apps/out/J7/C71/SYSBIOS/debug/vx_app_tirtos_linux_c7x_1.out     to  c7x  core  by  JTAG   and  run.

         now    this   problem    have  slove.    i    found     /* dont need this in C7x as of now */     #undef ENABLE_UDMA_COPY       in   app_cfg_c7x_1.h

        so   appUdmaCopyInit   is   not    done      go  the   problem.    but     i    do  not   know   why    ( /* dont need this in C7x as of now */     #undef ENABLE_UDMA_COPY  )??

    Thanks

    Shuai

        

  • Hi   :  Anand

           i        have          an     urgent problem,    as  the    same    way   i    call       appUdmaTest();   in     func  appMain

          i   have   run    appUdmaTest2DCopy    successful,       appUdmaTest2DCopy     is   test   copy   data   from   DDR  to  DDR  .

          i      want  to    try    copy   data   from  L2   to  DDR.    so    i   change   something   in   appUdmaTest2DCopy     as  follow.

         

    1、    dest_buf = appMemAlloc(APP_MEM_HEAP_L2, size, UDMA_CACHELINE_ALIGNMENT); 

    /////////  use  APP_MEM_HEAP_L2   replace  APP_UDMA_HEAP_ID       by   this      i   debug    dest_buf =0x0064800000     

    2、    prms_2d.dest_addr = appMemGetVirt2PhyBufPtr((uint64_t)dest_buf, APP_MEM_HEAP_L2);  

    /////////  use  APP_MEM_HEAP_L2   replace  APP_UDMA_HEAP_ID       prms_2d.dest_addr =1686110208      i    debug found       appMemGetVirt2PhyBufPtr  is   empty  
    3、       appMemFree(APP_MEM_HEAP_L2, dest_buf, size);
    when    i  debug    the  code    i   found    (ret_val = appUdmaCopy2D(NULL, &prms_2d, 1);)    ret_val=-1     ,  i    go  in func    appUdmaTransfer   it    give  this  inf  (  appLogPrintf("UDMA : ERROR: TR Response not completed!!\n");)
    i     have      test   this   on  c66     have  the  same  problem.      i  have   show   it    at     ()
    )
    thanks 
    Shuai
  • Hi Shuai,

    Please continue this discussion on the other thread with Sivaraj, we can close this thread.