AnsweredAssumed Answered

data capture via UART after LLS wakeup in Kinetis mqx

Question asked by annamol alex on Feb 2, 2017
Latest reply on Feb 15, 2017 by soledad

Hi,

 I am trying to configure K65 in LLS with uart wakeup.

To achieve the same the following changes were made.

In user_Config.h,

   #define BSPCFG_ENABLE_ITTYC      1

and in  init_lpm.c

{

        LPM_CPU_POWER_MODE_LLS,                     // Index of predefined mode
        0,                                          // Additional mode flags
        0,                        

        LLWU_PE2_WUPE4(3)|LLWU_PE2_WUPE5(3)||LLWU_PE2_WUPE7(3),  
        LLWU_PE3_WUPE8(3),                                          // Mode wake up events from pins 8..11
        LLWU_PE4_WUPE12(3)|LLWU_PE4_WUPE13(3),                                            
        LLWU_ME_WUME0_MASK|LLWU_ME_WUME5_MASK     
    },.

In init_Sci.c,  // to enable serial line in stop mode

/* LPM_OPERATION_MODE_STOP */
    {
        IO_PERIPHERAL_PIN_MUX_ENABLE | IO_PERIPHERAL_CLOCK_ENABLE,
        0,
        0,
        0
    },

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

Outcomes