cold fire controller( MC51CN128) Problem

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

cold fire controller( MC51CN128) Problem

445 Views
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 Kudos
2 Replies

387 Views
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 Kudos

387 Views
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 Kudos