Hi,
I am using TI Concerto F28M35H52C1. I had a project with Ethernet working fine and a project with low power mode working fine. I am trying to put these two code together. The SYSTICK interrupt is used for ethernet and timer0 interrupt is used to wake up my control card. In the main code, the SYSTICK is configured like below:
SysTickPeriodSet(SysCtlClockGet(SYSTEM_CLOCK_SPEED) / SYSTICKHZ);
IntEnable(FAULT_SYSTICK);
SysTickEnable();
IntRegister(FAULT_SYSTICK, SysTickIntHandler);
SysTickIntEnable();
The timer0 interrupt is configured before WFI and I also included a couple of lines to disable SYSTICK interrupt as shown below:
IntDisable(FAULT_SYSTICK);
SysTickDisable();
IntUnregister(FAULT_SYSTICK);
SysTickIntDisable();
// Configure Timer0
Timer0_Config();
// Execute 'WFI'instruction to put M3 in SLEEP
__asm(" wfi\n");
I tried a lot of things to disable systick interrupt and I think systick interrupt was sucefully disabled and timer0 interrupt was configured ok. The control card can fall into sleep mode but will never wake up. Can anyone help with this ?
Thanks in advance.
Bin