I am trying to configure K65 in LLS with uart wakeup.
To achieve the same the following changes were made.
#define BSPCFG_ENABLE_ITTYC 1
and in init_lpm.c
LPM_CPU_POWER_MODE_LLS, // Index of predefined mode
0, // Additional mode flags
LLWU_PE3_WUPE8(3), // Mode wake up events from pins 8..11
In init_Sci.c, // to enable serial line in stop mode
/* LPM_OPERATION_MODE_STOP */
IO_PERIPHERAL_PIN_MUX_ENABLE | IO_PERIPHERAL_CLOCK_ENABLE,
These changes were made. I can wake up via UART interrupt from LLS. At times, the event bit which i set after waking up doesn't get set and uart doesn't receive any data. Since debugger gets disconnected in LLS, can't make out exactly what is happening. I have mapped a new uart_isr with the intention of capturing data received via UART to kick start another task.
It would be great if someone can point me where I am going wrong in capturing data from UART.
- Is it possible to keep debugger enabled in LLS mode??
- How can I capture data from UART while waking from LLS? Is my implementation wrong
Thanks for the support
Original Attachment has been moved to: uart_lls.c.zip