adarkar9 wrote on Wednesday, March 21, 2007:
> Anything nice, or anything at all?
You probably would not be able to do anything nice. I think you could get _something_ going with two tasks and the scheduler on only 256 bytes of RAM. This would require some work, though. The Cygnal port uses the large memory model of SDCC. Since you have no XRAM, you would have to move to the small memory model. Also, the port saves each task’s stack in XRAM on a context switch. You would have to modify this code to just save and restore the stack pointer instead. Your stacks would necessarily be quite small because all of the OS data structures would have to reside in the same 256 bytes.
Eliminating the SFR paging scheme of the more complex Cygnal parts is really simple. Just switch out all references of SFR pages in the code. It is much easier to get rid of SFR paging support than to add it!
Good luck and let us know if you get it to work!
P.S. According to Wikipedia, it is uC over MC. However, I think MCU is a more broadly used abbreviation.