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.

OMAPL138 audioSample assertion failed

Other Parts Discussed in Thread: OMAPL138, OMAP-L137

Hi,

I am using omapl138 evm board. I am trying to run audioSample project. I did it before and everything  worked fine. But today I get error in console: Assertion failed, (0 != timeout), file Mcasp.c, line 3886. I get it when Audio_echo_Task() calls function createStreams() which calls  SIO_create(). As I said this started today, earlier it worked fine. Any ideas?

  • Hi,

    I managed to solve the problem, all i had to do was rebooting my computer. I don't know is it because of my computer or ccs4, but now it works.

  • I was wrong. It still doesn't work. I tried on two different computers with two different jtags (xds100v2 and bh usb560bp).

  • Hi Adam,

    Please try to answer each question so I can help you:

    1) Did you change anything in the example ir you are getting this error with the exact original example?

    2) What is the PSP version you are using?

    3) What is the code generation tool version and DSP/BIOS you are using (See Help-> About on CCS) ?

    4) Can you send a screen shoot of the error?

  • Hi Mariana,

    1) I installed PSP one more time so everything is unchanged,

    2) 1_30_01,

    3) cgt ver 7.0.1 (I also tried 6.1.9 and 6.1.14), DSP/BIOS ver 5.41.03.17

    4)

    It happens when function SIO_create is called (in createStreams()).

    Sometimes it starts working for a while and then it hangs and I receive that message. I tried to run it on ccs 3.3 and 4.1.2

  • Looking at the mcasp.c file:

        Uint32 timeout = Mcasp_GBLCTL_TIMEOUT;

         ...

               while ((((instHandle->hwInfo.regs)->GBLCTL & bitMaskVal) !=
                bitMaskVal) && (timeout > 0))
            {
                /* reduce the retry count value                                   */
                timeout--;

                isTask = TSK_isTSK();

                /* wait for 1 tick only if called from a task context             */
                if (TRUE == isTask)
                {
                    TSK_sleep(1);
                }
            }

            assert(0 != timeout);

    It seems that the program is not able to write to the GBLCTL register. So not sure what it is not able to write.

    With the same version of PSP, BIOS and CGT 7.0.1 I am not gettigng the issue.

    I looked in the release notes and another thing that must be checked is the EDMA version (I'm not sure if this could be related but please take a look) needs to be 1.11.00.03.

    I'm having problems with my L138 hardware, I will ask the PSP team to take a look.

    For  PSPS 1_30_00 and edma3_lld_01_10_00_02 it worked for L137. For  PSPS 1_30_01 and edma3_lld_01_10_00_03 it worked for L137.

     

  • Hi Adam

    As per Mariana's analysis it is the "writes" to McASP GBLCTL register that are failing. This could happen if somehow the McASP bit clock is not alive or has been stopped.

    Can you make sure your board is functioning properly, and the McASP clocks are functional?

    Regards

    Mukul

  • Also, take a look - that there is dip switch that cuts out/connects codec connectivity.

     

    If the dip switch is set to incorrect position, it might cause a problem.  

     

    Please check out  S7 – bit switch 2 should be “OFF” for audio to work.

     

     

     

  • Hi,

    Sorry I didn't reply for so long, but I was busy.  It turned out that codec aic3106 is broken, it was working for few minutes and then stopping, and when I turned off my board for about 30 minutes and then run my program it was working  again for few minutes. Thanks for your replies.

  • Mariana said:

    Also, take a look - that there is dip switch that cuts out/connects codec connectivity.
     
    If the dip switch is set to incorrect position, it might cause a problem.  
     
    Please check out  S7 – bit switch 2 should be “OFF” for audio to work.

    Hi, i confront with the same problem: Assertion failed, (0 != timeout), file Mcasp.c, line 3683 at the stdout window. The board woks alright last night. This message showed up once and disappeared after I reload the program. But when i retry it this morning, this error came out. It is the same with the original audioSample.pjt (for C6747). Nothing changed in hardware (OMAP-L137 EVM REV E) such as switch, etc. I hope it is not true that the AIC3106 become broken in one night.

    Here is the software version that i use:

    OMAP-L137 EVM REV E

    CCS V3.3.81

    BIOS 5.55.05

    EDMA edma3_lld_01_07_00_01

    pspdrivers_01_20_00_10

    The following is erros screenshot:

    Can anybody told me is there any other possibilities? Or I have to change another AIC3106?

     

  • Hi,

      I have done another test on my OMAPL137 EVM.

      I recompile them project  aic3106.pjt which is provided by spectrum inc. CD room with the EVM. the follow is the result:

      It seems that all the tests passed, however i hear nothing from HP. I confirm that my headphone is OK.

      If AIC3106 is broken, would these test pass? I just don't known what's going on with my EVM board.