1 Reply Latest reply on Dec 10, 2015 9:25 PM by JoYi_1844281

    Execution hangs in IRQ Handler function

    AndriiL_16

      Hi,

       

      I am having the problem that my IRQ handler hangs when "wiced_init" or WPRINT_APP_INFO is called, inside the handler. If I for instace only increment a counter inside the handler program execution continues as expected.

       

      This is printed on the UART:

      Starting WICED v3.3.1

      Platform EMW3165 initialised

      Started ThreadX v5.6

      Initialising NetX_Duo v5.7_sp2

      Creating Packet pools

       

      Handler function:

      void EXTI15_10_IRQHandler()

      {

           wiced_init();

           wiced_network_up(WICED_STA_INTERFACE,      WICED_USE_EXTERNAL_DHCP_SERVER, NULL);

      }

       

      Setup of GPIO and IRQ:

      wiced_gpio_init(WICED_GPIO_19, INPUT_PULL_DOWN);

       

      wiced_gpio_input_irq_enable(WICED_GPIO_19, IRQ_TRIGGER_RISING_EDGE, (&EXTI15_10_IRQHandler), NULL);

       

      Environment:

      Ubuntu 14.04.3

      Wiced 3.3.1

      EMW3165