Execution hangs in IRQ Handler function

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AndriiL_16
Employee
Employee
First like given Welcome!

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

0 Likes
1 Reply
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

There are lot function could not called inside IRQ handler !

Like, Any printf like, any cause system block function!

Only very few RTOS function could call inside IRQ!

You should read the RTOS manual first!