First: Your interrupt mode should be "Level" and not "Derived". Additionally you should read the GetRxInterrupsourceMasked() and issue a ClearRxInterruptSource(); see datasheet.
In your interrupt handler you should not start or stop the interrupt.
You read several bytes in the handler without checking if there are any recieved. This will lead to reading zeroes as the datasheet states.Better will be to read a char and store it into a circular buffer and process the data from there.
Thanks Bob! You are a lifesaver. I have had issues with this in the past and I didn't realize that I needed to do what you described. I simply did:
All is well now. I definitely should take into consideration your circular buffer idea so that I don't read in zeros! Thank you for your help!
You are always welcome, Tyler!
Thank you both!
I had the same and now its solved
Welcome in the forum! Do not hesitate to ask any quiestions.