This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

The app_timer timeout_handler function will increase current about 200uA

HI,

    Under nRF5_SDK_12.2.0_f012efa, with s132_nrf52_3.0.0_softdevice, run on system on low power mode.

   I define an app_timer,below is my parameter

    APP_TIMER_DEF(m_second_id);    //Timer ID

    #define SECOND_INTERVAL       APP_TIMER_TICKS(1000, APP_TIMER_PRESCALER)   //timer interval

    //timeout function

    static void sec_timeout_handler(void * p_context)

    {
    uint32_t count = 0;

#ifdef    TEST
    count = 2400;  //  run for 14ms
      while(1)
      {
        count--;
        for(i=0;i<5;i++);
        if(count == 0)
        {
             break;
        }
      }

#endif
    }

    if undef TEST, the current is stable at 30uA ,

    if def TEST, the current will increase, the value is range between 20 to 200uA .

    if the timeout function run more than millisecond, the current will increase, what  error will produce this problem?

    best regards

 

Parents Reply Children
No Data
Related