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

electric leakage when mesh_stack_start ->NVIC_SetPendingIRQ(EVENT_IRQn) is called

Now we development a switch and use it control the light. When i push switch close the light, there was still a faint light. Then i found when NVIC_SetPendingIRQ(EVENT_IRQn) is called in mesh_stack_start will cause electric leakage,do not run the function, The close light is normal.Has anyone encountered this problem and how to solve it?

Parents
  • We use gpio below(relay is the light):

    #define SW_LED_1 NRF_GPIO_PIN_MAP(0,27)
    #define SW_LED_2 NRF_GPIO_PIN_MAP(0,26)
    #define SW_LED_3 NRF_GPIO_PIN_MAP(0,4)
    #define SW_RELAY_1 NRF_GPIO_PIN_MAP(0,22)
    #define SW_RELAY_2 NRF_GPIO_PIN_MAP(0,23)
    #define SW_RELAY_3 NRF_GPIO_PIN_MAP(0,24)
    #define SW_BUTTON_1 NRF_GPIO_PIN_MAP(0,12)
    #define SW_BUTTON_2 NRF_GPIO_PIN_MAP(0,15)
    #define SW_BUTTON_3 NRF_GPIO_PIN_MAP(1,9)
Reply
  • We use gpio below(relay is the light):

    #define SW_LED_1 NRF_GPIO_PIN_MAP(0,27)
    #define SW_LED_2 NRF_GPIO_PIN_MAP(0,26)
    #define SW_LED_3 NRF_GPIO_PIN_MAP(0,4)
    #define SW_RELAY_1 NRF_GPIO_PIN_MAP(0,22)
    #define SW_RELAY_2 NRF_GPIO_PIN_MAP(0,23)
    #define SW_RELAY_3 NRF_GPIO_PIN_MAP(0,24)
    #define SW_BUTTON_1 NRF_GPIO_PIN_MAP(0,12)
    #define SW_BUTTON_2 NRF_GPIO_PIN_MAP(0,15)
    #define SW_BUTTON_3 NRF_GPIO_PIN_MAP(1,9)
Children
No Data
Related