Hi, I did reply to this thread yesterday, but its somehow lost!!! Sorry for that.
Let me try to recapture....
The PCR_SR should indicate the reason for the wakeup. If its not (= 0x0000) something is wrong. I expect some configuration is wrong and e.g. the device does not enter STOP mode and therefor no wakeup is indicated.
One specific issue with the software sent is that the following statement should be done when the TEN = 1: (please see //xx)
void WakeUpTimerInit(void)
{
/* TIMER CLK
*
* When in STOP or SLEEP mode, this timer is clocked by ALFCLK
* ALFCLK is configured to be 1khz (1mS)
*
*/
// PTB2 must be set to output
B_GPIO_CTL = GPIO_CTL_PTB2_OUTPUT;
// route Timer OC3 to PTB3
B_GPIO_OUT2_TCOMP3 = 1;
// set Timer Ch3 to OC
B_TIOS_IOS3 = 1;
// force internal PTB3 to low
B_TSCR1_TEN = 1;
B_TCTL1 = 0x80; // set OC3 for Falling
B_CFORC_FOC3 = 1; // force OC on OC3
//xx clearing must be done with TEN = 1
B_TFLG1_C3F = 1; // Clear Irq Flag
B_TSCR1_TEN = 0;
// setup a rising edge in 10s
B_TCTL1 = 0xC0; // set OC3 for Rising
B_TC3 = B_TCNT + 10000; // reload 10s
//xx B_TFLG1_C3F = 1; // Clear Irq Flag
}