RTE error (reset) MCF51QE128

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RTE error (reset) MCF51QE128

5,066 次查看
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

标签 (1)
0 项奖励
回复
5 回复数

830 次查看
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 项奖励
回复

830 次查看
thm59
Contributor II
Hello,

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

thierry


0 项奖励
回复

830 次查看
thm59
Contributor II
the same running with MC9S08QE128

thierry
0 项奖励
回复

830 次查看
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 项奖励
回复

830 次查看
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 项奖励
回复