Hello,
In my project I want use the fopen, fwrite, fclose functions within an USB interrupt.
If I dont' use the RTX all is OK, but if I use the RTX, I have and undef_handler, sometimes an dabt_handler.
I don't understand the problem, anybody can help me ?
Thanks,
Julien.
Some time-critical code doesn't work well with an RTOS because they don't expect someone else to jump in and steal the processor for them.
Changing the time slice length may make such code behave as if it works. It's like taking a drunk and have him walk on a narrow plank over a stream of water. The drunk will fall in. Make the plank a little bit wider and it will seem to work. But it will still just change the probabilities that the drunk will fall off. A better method would be to replace the plank with a bridge with railings. Or maybe have the drunk sober up before trying to cross the water stream.