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.

aif2 reset

I am trying out the AIF2 examples available an I get following phenomenon, concerning this lines of code:

   ctrlArg = FALSE;
   CSL_aif2HwControl(hAif2, CSL_AIF2_CMD_ENABLE_DISABLE_LINK_LOOPBACK, (void *)&ctrlArg);

After a board reset when ctrlArg is False the transfer is not done. Then I switch it to True and download the program again and the transfer is done. When I switch back to False the test passes as the transfer is done. I need to hw reset the board to have the transfer fail.

What is the right way to software reset the AIF2 in order to get a blank slate after each program download.

 

  • Hi,

     

    To avoid that problem, you'd better not use ctrlArg = FALSE; statement.

    Instead, just uncomment the loopback setup line, then the ctrlArg may stay in TRUE status forever.

    if you don't want this, you can also define multiple control argument variables and use one of them only for loopback control.

    it is simple SW technique issue.

     

    Regards,

    Albert