Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years ago.
Serial Interrupts issue??
Hi
I am using a single serial interrupt in my program. The scenario is i am using a RF radio to receive data in main() in a while(1) loop and in the meanwhile if i get some serial input from user , i transmit the data based on that serial input. Now what happens is if i do not interrupt the infinite while loop, the transmission goes fine (both TX,RX) but i need to interrupt based on user desired action, after the interrupt the program does not return to main() again.
I have tried using MODSERIAL as well but the problem remained the same :(
Any help will be more than welcome
Thanks
1 Answer
10 years ago.
The most likely reason is that you are trying to do something invalid in your interrupt routine and the program crashes.
Without seeing the code it's hard to say how to fix anything. If you post it with <<code>> and <</code>>
on their own lines before and after the code it will format correctly on this site.