I have problem in using isr_evt_set interrup handler sent event to task with isr_evt_set but task did not receive event or consumed much time
LM3S Luminary chip has NVIC and I didnt enable interrupt in user mode
at NVIC How do I set irq-handler with keil rtx is it reserved sections for nvic handler? does it need irq stack?
at startup code
export __Vectors __Vectors ... dcd irq1handler dcd irq2handler ...
at task
void irq2handler(void) __irq { isr_evt_set(INT_SIGNAL, handler_task); } __task void handler_task(void) { while(1) { os_evt_wait_or (INT_SIGNAL, 0xffff); do_start_handler(); } }
irq2handler work with privilege mode but do_start_handler is not working
help me..
the 2nd parameter to isr_evt_set needs to be the Task ID (returned from some from of os_tsk_create) of the task you want to send the event too, not the address of the function you want to send it too.
thank you for reply Of course i used OS_TID and created it in init_task. And I have read state-bit for irq-clear in handler Sample code is conceptional code.
Problem is handler do not send signal and task do not receive signal completely (some time receive it)
I cleared my problem I missed to clrear inttrupt at handler my probelm is in usb0device interrupt
it is read USB_INT_STATE & USB_INT_STATE_ENDPOINT to completely clear at handler but I cleared just USB_INT_STATE
thank you
View all questions in Keil forum