- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
GPIO
-
Interrupts
-
SDK 3.x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!