This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Changing RTOS

Hello,

What differences would I have if I changeover from UCOS II to RTX?

Currently I have an existing UCOS II code (undocumented) works in the CARM but I decided to use the RTX as it is incorporated into the RVDK.

I have modify the code to compile in the new compiler but some of the routines does not work properly like the UART ring buffer and the I2C routine. If I use the basic UART routine from the Keil examples, I can display text in hyperterminal.

For setting up the RTX, I have chose 16 MHz for the tick clock value using timer0 and 1000 us for the tick value. I have disable the Round Robin and add priority for the tasks similar to the existing code. The other thing different is the timer function for the code which previous it was called by OSTimeTickHook(), setup by timer3 but in the new code I use a higher priority task to keep a track of time to be use for updating the LCD screen and adding os_dly_wait(1000) for the 1 second delay. This is use for updating a clock displayed on the LCD screen.

I am contemplating rewritten the whole code as the previous code was designed to work on UCOS and the code is a total mess.

Regards
Paul