FreeRTOS on mcf51cn128 with GCC

Eugene Leigh leigh.eugene at promwad.com
Tue Feb 23 18:17:11 UTC 2010


Hi All

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

I have compiled FreeRTOS CodeWarrior demo for MCF51CN128 with GCC.
Adapted makefile from example for MCF52233 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 jumps on
reset 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)
__cs3_interrupt_vector_coldfire()

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

Any ideas?
Thanks

Eugene




More information about the coldfire-gnu-discuss mailing list