RTE error (reset) MCF51QE128

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTE error (reset) MCF51QE128

5,071 Views
thm59
Contributor II
Hello,

I'm trying (for 1 week) to port FreeRTOS on the MCF51QE128 (I have port this on mc9S08QE128 without problem), on the basis of the excellent work of Emmanuel (BugMan) for MCF5213.
When the OS try to start the (Task) scheduler, after a "restore context", a RTE instruction re-load the PC and the SR.

But, the MCF51 resets when trying to execute this RTE.

I attach a picture of the debug session, just before the execution of  the RTE instruction.
The stack frame at 8004DC looks OK (?), The instruction at the  BC4 adress (B4C) is a JSR

Does anyone have a remark or a suggestion (I am relatively beginner)?

Anyone  know other (free) RTOS fort the MCF51QE?

thanks,

thierry

Labels (1)
0 Kudos
Reply
5 Replies

835 Views
erooll
Contributor II
Hi.
 
I download last version in your post, but doesn't work in Coldfire V1.
Could you send me your version that works OK in an Coldfire?
Thanks.
 
0 Kudos
Reply

835 Views
thm59
Contributor II
Hello,

I attach the work I have already done, hoping that someone could help me

thierry


0 Kudos
Reply

835 Views
thm59
Contributor II
the same running with MC9S08QE128

thierry
0 Kudos
Reply

835 Views
thm59
Contributor II
OK, now it works (FreeRTOS V4.7)

Attached is a simple demo : Toggling 2 leds at different speed on a DEMOQE128.
The code is given without any warranty and can be most probabely improved.

th.
0 Kudos
Reply

835 Views
RajahMC
Contributor I
Hi thm59,

Thanks a lot for your port. Works like a charm.
on the QE128. I am using your source as a start
and trying to port it to JM128.

I keep getting an ILLEGAL_BP after starting
the program from the debugger. The only file
that I had to change was main.c

I have my project attached. Can you please
see if I am missing something?

Thanks,
Rajah




0 Kudos
Reply