I am working on the NGW100 standalone development.
I have got my development environment up and running, with few drivers and some application code. I use newlib to setup interrupts and everything works fine.
Now, I want to use a RTOS and FreeRTOS seems to be an obvious choice, with the port available. Now, here is where my troubles start.
I want to use newlib for:
1. Interrupts and Exception.
2. Memory allocation.
3. Math library.
Now, I incorporate FreeRTOS and newlib. Problems while doing this:
1. Both newlib and FreeRTOS code handle the interrupts. Problems in compiling the code.
2. Both newlib and FreeRTOS code handle the exceptions. Again problems in compiling the code.
Also, it seems that the FreeRTOS handles the interrupts in slightly different way than the newlib code. The FreeRTOS code pushes a few more registers on the stack, than what the newlib code does. Is it ok using the newlib method for interrupts with FreeRTOS or it is safer using the FreeRTOS method for handling interrupts?
Has anyone had an experience in running newlib and FreeRTOS together?
Or Is there a way where I can take the required newlib source and just add to my project? Is is this doable or is just too much work?