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.

evm OMAPL-137 MCASP stop working after DSP/BIOS interrupt



Hi,

  I tried to run AIC3106 installed on evm OMAP L-137 to read samples in interrupt routine. I created in GCT DSP/BIOS 5.33.01 new CLK object with function _dataIO with MCASP1_RBUF0_32BIT and MCASP1_XBUF5_32BIT to read/write. I created new SWI object with function processing where I want to compute data samples (mailbox =1). MCASP1 and AIC3106 configuration is like in CCSv3.3\boards\evmc6747v1\dsp\test\aic3106 example, Clock Manager Timer 1 ticks 100us/int or 1000us/int.

I don`t know why I have to initialize MCASP1 every program enter to the interrupt routine or processing function. I have to write XGBLCTL register. Why DSP/BIOS interrupt kills MCASP1 XGBLCTL register? Is it possible to do this better?

  • Have you looked at the audio loopback example in the PSP at:

    C:\OMAPL137_dsp_1_00_00_07\pspdrivers_01_20_00_07\packages\ti\pspiom\examples\evmOMAPL137\audio\bin\Debug

    It works out of the box using DSP/BIOS and AIC3106.  You do have to use the GEL for setting up pinmux. 

  • I stayd by DSP/BIOS and run MCASP in task and filter implementation in CLK object tics 100us. Program works good but I have to do pooling MCASP1_SRCTL0 and MCASP1_SRCTL5 registers so I loose time that I need to filter computation. I want to read/write MCASP1 in ISR after MCASP_INT. I changed initialize MCASP1 adding mcasp>regs>RINTCTL = 0x00000020, in DSP/BIOS HWI_INT4 object interrupt selection number is 54 for DSP subsystem.  I`m not sure my program goes on DSP or on ARM core - I use evmomapl137_dsp.gel. I created HWI_INT4 function _dataIO, monitor - nothing and enabled Use Dispatcher: arg =0, interrupt mask self. After EVMOMAPL137_init(), CODEC and MCASP initialization I write to CFGCHIP1 register |=0x04000000 to enable receive MCASP1 interrupt. My program doesn`t go to ISR. What is wrong? If is it possible I dont want use pspdrivers.

    Best regards Adam

  • Hi Joe G,

    I am interested in the audio example you mensionned but I can not fing in on TI`s web site. Can you direct me with a link to get this source code:

    OMAPL137_dsp_1_00_00_07\pspdrivers_01_20_00_07\packages\ti\pspiom\examples\evmOMAPL137\audio\bin\Debug

    The only thing I cam accross is the  OMAPL137_dsp_1_00_00_11 with no audio example...

    thx