Hi,
referring to the thread,.. http://e2e.ti.com/support/embedded/bios/f/355/t/34234.aspx
I am using DM6437 EVM with 1.50 gel file. I have configured the McBSP driver (using versions -- pspdrivers_1_10_03, Bios_5_33_01) as SPI master in order to communicate with SPI-EEPROM in Interrupt mode.
I am driving the SPI clock at 300Mhz. And generating interrupt for every 8bit of transfer. It works fine when I am using simple background task with the SPI write task. But I am facing some transmission errors when I integrated the same driver code in the final system( video Encoding) . Where the system shares the SPI events with the other EDMA events via ECM manager. I am suspecting the issue with Interrupt latencies as the SPI driver is very sensitive for underruns.
I am trying to configure seperate HWI interrupts for the SPI driver using the same McBSP driver's (_DDA_McBSP_RegisterInt()) like
hwiattrs.arg =(Arg)chan;
HWI_dispatchPlug(evt, (Fxn)intIsr, (-1) , &hwiattrs);
ECM_dispatchPlug(evt, (ECM_Fxn)intIsr, &hwiattrs);
HWI_eventMap(5,evt);
C64_enableIER(1<<5);
I am able to generate the interrupts but after 4 bytes of transfer it fails.
can any body please help me in configuring the the McBSP driver for seperate HWI or solving the above problem.
Also If possible can any body( Sadeep et al) provide the sample code to run the EDMA mode of the McBSP driver for SPI communication.
Many Thanks,
regards,
Sri