Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


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

printf and interrupts

I need receive data through the uart via interrupts. I am using the philips 89lcp935 which claims to have separate tx and rx interrupts. As soons as I enable the Rx interrupts in whatever mode, I get tx interrupts when I printf(from MAIN) and nothing comes out of the uart as the transmit interrupts are not enabled. If I enable them then I get one character and no more until I manually set TI...where upon I get another character etc.

I was expecting that if I disabled the tx interrupts then printf would work normally, but it doesn't seem to be doing that. Any ideas? Also, with separate tx and rx ints (CIDIS ==1) the debugger never shows and access to the tx interrupt routine that code architect generates. Could it be that the interrupt vector generation isn't supported correctly, or could I just be doing something daft?

Any assistance would be greatly appreciated.
Regards

Ian