Hi Neil,
I was testing your Helium RTOS 2.0 for a while.
I think I found numerous bugs in the code, including context switch and I think I have managed to solve them.
Here is the Code Warrior 6.3 project for DEMO9S08DZ60, that is for DZ60 micro.
It is a nice working example which might be usefull for somebody and also you could review the changes that I have made and possibly update the version on sourceforge.
The explicit comments regaring changes I have left on heliumRTOS Yahoo group. All the changes made by me in the code has a comment with symbols "(SJ)".
Chanes were made to all RTOS files.
Provided project has 3 threads + Idle, 2 fifo pipes, SCI driver writte by me with 1 mutex. Uses some ~750 bytes of RAM in total and at least with those tests that I have made seem to work as expected.
It would be good if someone could put some testing effort in to this RTOS. Becouse it looks like it is really lightweight, simple and easy to port RTOS, but things that I found bring some reliability concerns.
Saulius