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.

C6455中跑csl自带的SRIO 自环测试例程,总是卡在循环里。

程序总是卡在这个位置?

  response.index = 0;
     do {
      /* Setup the SRIO with the selected setup in the last step */
      status = CSL_srioHwSetup (hSrio, &setup);
      if (status != CSL_SOK) {
          printf("SRIO: ... Hardwrae setup, failed\n");
          return stp_fail;
      }

   //Delay for PLL? need to re-clear errors?
   for(index=0; index<0x10000; index++) {
         dummy_cnt = index + 1;
    dummy_cnt++;
   }

         CSL_srioGetHwStatus (hSrio, CSL_SRIO_QUERY_SP_ERR_STAT, &response);
     }while(response.data & 0x1);

看到过论坛里帖子的回复,还是没搞懂该怎么解决这个问题?

如果在程序里屏蔽掉下面的语句,程序可以跑通,但是不能传输数据。

CSL_FINST (((CSL_DevRegs*)CSL_DEV_REGS)->PERLOCK, DEV_PERLOCK_LOCKVAL,
                UNLOCK);