FreeRTOS on tower MCF51CN with GCC problem

lieugene wrote on Wednesday, February 24, 2010:

Hi All

I’m trying to use FreeRTOS with GCC 4.4.1 from CodeSourcery for
Coldfire mcf51cn.

I have compiled FreeRTOS CodeWarrior demo for MCF51CN128 with GCC.
Adapted makefile from MCF52233 demo and trying to run an LED task.

It look like I have a problem with context switching. Inserting
breakpoints into vPortYieldISR and stepping it look like it crashes after switching back to LED task:
- vPortStartFirstTask: (LED)
- vPortYieldISR: (IDLE)
- vPortYieldISR:
stores context of current task, restores context of LED task (doesn’t
look like a garbage or pointing out of stack)

Compiler options are the same as for MCF52233 apart from cpuid and liker

Any ideas?