Have been struggling with some crash problem in our project and was able to isolate the problem.
I seems that some math functions are not thread or interrupt safe while using uC/OS-III. I guess some registers are not saved/reconstructed correctly in the context-switch.
The example will crash without the : #define WORKAROUND at the top of the code
Any idea what is missing?