I saw this article on linkedIn and it brought up some interesting points with regards to my own experience in testing a medical device.

Like anything choosing how you would use something is critical to the choice. We had a lot of problems with our RTOS based on dependencies with a couple of drivers, in particular the I2C bus. We had lots of crashes at random times and sometimes our backup battery would get messed up.