I'm working on an application that samples an ADC via the McASP, buffers up data, processes it and stores the result to a SD card using TI-RTOS. I'm using the McASP driver and EDMA driver that ships with PSP. When the system enters the idle task and idles the processor using the following code
Hwi_disable();
REG(PDCCMD_REGADDR) = PDCCMD_VALUE;
_PMI_doIdle();
with PDCCMD set to 0x00005555 all is well. It will wake up every time a buffer is filled via EDMA then processes and stores the data. If Iuse the power module and call the Power_sleepDSP function then things hang as long as the McASP is running. I'm using the following line to put the processor core in powerdown,Power_sleepDSP(Power_STANDBY , 0, 0)
Looking at the source for the function, the only real diference is that it sets the PD bit in the power down controller . If it is not sampling at the time (the McASP is shut down) then it works properly and enters power down mode properly and wakes on every timer interrupt, if the McASP is running then the system hangs. Any suggestions?
Blair