Hi TI tech support,
This is a really confusing problem. To make C5504 DSP to sleep, I could not see any problem on following code.
But, if IER0 is set to be 0, DSP will not wake up at all. If set IER0 to be 8 (INT1), DSP will never goes into sleep at all.
INT1 is connected to another controller to wake DSP from sleep. Please help.
*(volatile unsigned int *)IER0 = 0x08;
*(volatile unsigned int *)IER1 = 0;
*(ioport unsigned int *)ICR = 0x03FF; // Stop all modules
asm(" IDLE"); // CPU goes into idle state at this point
// --------------------------
// CPU wakes up from now on.
*(ioport unsigned int *)ICR = 0x20E;
asm(" IDLE"); // After this point, all peripherals wake up.
In last two months, I have posted three questions on E2E. There is 0 reply back from TI support group. Please help!
Thanks,
Howard