Problem in scheduling the tasks(event 1 and event 3).
Posted: Fri Jul 26, 2019 9:59 am
Hi all,
I'm working with the ERIKA v3 with infineon for my application in which i need to schedule interrupt(hardware) oriented event triggered task (say Event 2) along with the default event triggered task (led blinking task Event 1).
I've activated both the tasks in TASK(IFX_OSTASK_INIT)
ActivateTask(IFX_OSTASK_EVENT1);
ActivateTask(IFX_OSTASK_EVENT2);
The set event API Ifx_OSTask_SetEvent (IFX_OSTASK_EVENT1, 1); for led blinking is called inside the IFX_INTERRUPT_CATEGORY2(Ifx_OSTask_BlinkLedIsr,0,11) function. I'm calling the set event API for event 2 from interrupt routine (only when the switch is pressed).
After reset
The led is blinking with 50ms delay until interrupt is ocurred, once when i press the interrupt switch the ISR which i've define inside the event 2 gets performed and the loop gets stuck before the Ifx_OSTask_WaitEvent ( 2 ); in task (event2), ultimately total system get hang.
can anyone help to overcome this ?
Thanks in advance ..!
I'm working with the ERIKA v3 with infineon for my application in which i need to schedule interrupt(hardware) oriented event triggered task (say Event 2) along with the default event triggered task (led blinking task Event 1).
I've activated both the tasks in TASK(IFX_OSTASK_INIT)
ActivateTask(IFX_OSTASK_EVENT1);
ActivateTask(IFX_OSTASK_EVENT2);
The set event API Ifx_OSTask_SetEvent (IFX_OSTASK_EVENT1, 1); for led blinking is called inside the IFX_INTERRUPT_CATEGORY2(Ifx_OSTask_BlinkLedIsr,0,11) function. I'm calling the set event API for event 2 from interrupt routine (only when the switch is pressed).
After reset
The led is blinking with 50ms delay until interrupt is ocurred, once when i press the interrupt switch the ISR which i've define inside the event 2 gets performed and the loop gets stuck before the Ifx_OSTask_WaitEvent ( 2 ); in task (event2), ultimately total system get hang.
can anyone help to overcome this ?
Thanks in advance ..!