This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

isr_evt_set inside a uart interrupt not working

Hi All,

I am working on project using At91sam7s128 and have isr_evt_set(0x0001,TaskIDUSPort0) inside my uart interrupt.

Question is what will happen if another new uart interrupt occurs while I am processing in TaskIDUSPort0.
isr_evt_set(0x0001,TaskIDUSPort0) will send same event again, right?

It looks like isr_evt_set stops working after multiple hits.

Any comments are welcome!

Xiao

Parents
  • Hi all,

    Thank you for your replys!

    The event (isr_evt_set) should be sent after the UART gets a byte with parity error. Normally, it should be only one interrupt in one complete frame. If something wrong in the incoming frame, it could have serveral bytes with parity error one right after the other. Most time these bytes (Interrupts) will stop the isr_evt_set. I can see that isr_evt_set is called (set break point), but the UART task gets nothing.

    Xiao

Reply
  • Hi all,

    Thank you for your replys!

    The event (isr_evt_set) should be sent after the UART gets a byte with parity error. Normally, it should be only one interrupt in one complete frame. If something wrong in the incoming frame, it could have serveral bytes with parity error one right after the other. Most time these bytes (Interrupts) will stop the isr_evt_set. I can see that isr_evt_set is called (set break point), but the UART task gets nothing.

    Xiao

Children
No data