|
"isr_evt_set "problemNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Jack Yang Posted 20-Nov-2008 16:22 GMT Toolset ARM |  "isr_evt_set "problem Jack Yang Hi All: I have a problem when I use “isr_evt_set†in my UART interrupt routine: It ca not reach to “ os_evt_wait_or(0x0001,0xffff);†But if I just change “isr_evt_set†to “os_evt_setâ€, my code works fine. Anybody knows what’s wrong? I am using MCB2300 board. Part of code here:
void UART3Handler (void) __irq
{ isr_evt_set(0x0001,UART3_TASK);
/*use "os_evt_set" works*/
VICVectAddr = 0; /* Acknowledge Interrupt */
}
void task_UART3_received (void) __task
{
BYTE IIRValue, LSRValue;
BYTE Dummy = Dummy;
for(;;)
{
can not get here if I use "isr_evt_set":
os_evt_wait_or(0x0001,0xffff);
......
}
Thanks Jack | | Read-Only Author Jack Yang Posted 20-Nov-2008 16:28 GMT Toolset ARM |  RE: "isr_evt_set "problem Jack Yang Sorry some chars can not be read, post my question again: Hi All: I have a problem when I use "isr_evt_set" in my UART interrupt routine: It can not reach to "os_evt_wait_or(0x0001,0xffff);" But if I just change "isr_evt_set"to "os_evt_set", my code works fine. Anybody knows what's wrong? I am using MCB2300 board. see my code above Thanks Jack | | Read-Only Author F D Posted 20-Nov-2008 21:24 GMT Toolset ARM |  RE: "isr_evt_set "problem F D Hi Jack, is your system startup deterministic? Do you have UART task3 actually created when the first interrupt occurs? By using "os_evt_set" you may compensate a existing error through the introduction of an second error. -Frank | | Read-Only Author JACK Yang Posted 20-Nov-2008 22:21 GMT Toolset ARM |  RE: "isr_evt_set "problem JACK Yang Thank you Frank! I did not change anything in LPC2300.s. what system startup deterministics mean? I am sure all tasks are created before the first interrupt occurs. Thanks Zhen | | Read-Only Author Per Westermark Posted 20-Nov-2008 23:08 GMT Toolset ARM |  RE: "isr_evt_set "problem Per Westermark Deterministic - order of creation always the same. Great care should be used when the first threads starts running while you are busy creating more threads - or interrupts starts to tick. | | Read-Only Author JACK Yang Posted 21-Nov-2008 00:37 GMT Toolset ARM |  RE: "isr_evt_set "problem JACK Yang Hi Per Westermark, I will review my code first tomorrow. Thanks again Jack | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|