nobody wrote on Friday, April 27, 2007:
The code goes as follows:
/* Restore the context of the first task. */
/* Simulate the end of an interrupt to start the scheduler off. */
__asm( "rti" );
Without knowing the details of the HCS port in particular, the first line should setup the stack pointer such that the RTI instruction causes the program counter to be loaded with the address of the first instruction of the task about to execute.
You should be able to step through the portRESTORE_CONTEXT() code to see this happen. When you step through the code, check that the registers are loaded with their expected values as setup by pxPortInitialiseStack() in port.c. By the looks of it the X register should contain 0xffee and the Y 0xddcc. If this is not the case then something is wrong before portRESTORE_CONTEXT() is called.
I presume PE_ functions are processor expert functions. Have you at any time enabled the processor expert in the project? If so, unzip a clean version, then when you open the project and you are asked if you want to connect it to the processor expert, select NO.