Hi guys, thank you for quick reply.
Hi,
I altered by using either IFG or UCBUSY. After your recommendation I stick to UCBUSY. I changed the other parts of the code of how you recommended but the issue remains.
The mentioned C-code stated in the beginning works flawlessly. If I load this code first, I can successfully run my own code if I don't reinsert the board.
Like stated in in this post above, it works flawlessly with the code in my first post (the link) in Linux and if I do exactly the same steps to read the serial port but with my code - it get stuck as you mentioned.