Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

OMAP=L138/C674x EDMA/McASP interrupts not firing

$
0
0

Hi,

Looking for some help with C6748 interrupts.

I am using OMAP-L138, but testing DSP side only application. It is an application which captures/plays back audio. Using SYSBIOS version 6.33.05.46. Have set up EDMA for both McASP Tx and Rx. Code is setting up 20 ms (at 32 kHz) buffers for both rx and tx direction. It is using EDMA chaining and EDMA interrupts for transfer completion.

Everything works well when I run the code after power up (connect to the ARM and let it initialize PLL/memory and wake up the DSP and then load code to the DSP and run it). I can see mcasp rx and tx channel interrupts on EDMA and everything works well. I also have mcasp error interrupt setup and I do see some clkfail interrupts there (those are spurious interrupts due to improper register configuration at my end)

The other interesting part of this application is the use of I2C interrupts to set up ADC/DAC.

But, the problematic bit happens if I rerun the code without rebooting. I can see that EDMA counters are moving and I can see that chaining is working (by running and pausing several times). But no interrupts are generated on either the EDMA or McASP error. I2C still works fine and it configures the ADC/DAC.

I have checked the following and everything looks good

IER enables the relevant channels
Global Interrupt Enable (GIE) is set

Not using any event combination.

I can see that the corresponding EVTFLAG is set, but IFR does not get set. This was true for both EDMA and McASP error interrupts.

I2C was working just fine till the time I tried setting a break point when I2C Hwi_create() happens. Subsequent tries did not trigger I2C interrupt also. Puzzled?

I am using Hwi_create with masking_ALL to create these interrupts in C code.

Any suggestions I can try?

Cheers,

-raja.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>