cold fire controller( MC51CN128) Problem

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

cold fire controller( MC51CN128) Problem

476 次查看
vamsidhanunjay
Contributor I

Hi, we are using coldfire controller for ethernet application. Recently we are getting one issue that PLL is not getting locked. Due to this Phyclock is not getting generated. we are using 25Mhz crystal , when running the code it is going to illegal vector (program counter error vector number 4) where PLL is getting locked. verified the circuit and measured crystal also every this fine. Plz let me know what may be the problem.

0 项奖励
2 回复数

418 次查看
TomE
Specialist II

The OP is probably running under the debugger, or they wouldn't know that it was getting that exception. They would need a good software system to be able to trap and report that otherwise.

I would suggest that they add a breakpoint to the Illegal Instruction routine, and then inspect/dump/copy the stack frame. That will give the program counter of where the illegal instruction was fetched from. This will either be an address not pointing to real code, or it will. If the latter, and the instruction at that address now reads properly, then the initial read of that data failed.

It looks to be a clocking problem of some sort.

Is this happening to one unit only or all new production?

Can they change the code to wait a lot longer after the device claims it has PLL Sync before switching the clock? If that fixes it then there's most likely to be a stability problem with the crystal or the PLL.

Tom

0 项奖励

418 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

First of all, sorry for the later reply.

Could you debug the project? If yes, during debug, when execute PLL_INIT() will cause the same Illegal instruction exception?

Could you help to confirm it?

best regards,

Mike

0 项奖励