MPC5643L Clock and PLL initialization problem

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

MPC5643L Clock and PLL initialization problem

3,160 次查看
Redevil
Contributor I

Hi Stanish ,

 

I was trying to download sample code for clock and pll in the daughter card for MPC5643l using Trace 32 debugger. Sample code is for MPC5604P but register set is same for leopard and pictus MCU. Problem is Mode entry module is not entering in to RUN0 state and on giving the command to switch from SAFE mode to RUN0 mode it causes invalid mode request interrupt. I will be grateful if you can assist me on this problem. You can check the CW example codes for the sample code ( PLLSYSCLK) i am trying to download.

 

 

Thanks

Redevil

0 项奖励
回复
6 回复数

1,704 次查看
zebra84
Contributor I

Hi to all, I solved the problem with Freescale helping.

The problem was on daughter card.

The initial build of this card were populated with 4.7K R9 resistor, in bottom side.

You, only, have to remove it.

Best regards

Fabio

0 项奖励
回复

1,704 次查看
bastian_schick
Contributor IV

I also fought with the PLL setup (though I had no example sources).

 

Did you go step by step ?

 

How does the cpu come out of reset ? Mine comes in DRUN mode.

 

My steps:

- enable OSCX

- enable PLL1

- enable PLL0

- set  SYSCLK to 4

 

All in the ME_DRUN_MC register.

All one after the other.

 

Then I program the PLL.

Then I switch to DRUN mode (yes from DRUN mode)

 

Now PLLs are locked.

 

But: I currently have no way to check if the PLL is working correct.

0 项奖励
回复

1,704 次查看
lingaraj
Contributor I

Hi,

I am trying to initialize the clock and PLL  for MPC5643L.

I made some code but the PLL is not getting locked.....I means S_CLOCK is always showing 0.

It will be very helpful if u could explain me the steps in breif......

 

BR

LG

 

 

 

0 项奖励
回复

1,704 次查看
zebra84
Contributor I

Hi, I would like to have the .prj for initialize sysclk....I use this board since 2 months and I didn't de able to initialize this features.... I have found breakfest was very poor little material on this board...

Please someone post sample code(that works)...

thx

Fabio

0 项奖励
回复

1,704 次查看
Redevil
Contributor I

hi ,

 

I am using Trace 32 debugger in that i can directly check the MCU modes and after reset MCU comes out in SAFE mode 

instead of DRUN mode ... again strange.

 

I will try your steps .. nevertheless now there is one more issue ... when I am trying to download the source code using Trace 32 there is a error message "MMU translation error " do you have any idea regarding this error ?

 

Thanks 

Redevil

 

0 项奖励
回复

1,704 次查看
Redevil
Contributor I

Hi,

 

Replying to my previous question.

 

If the MCU comes out of reset in SAFE mode then there is some hardware problem in the MCU.

Also MMU translation problem in Trace32 is also due to same reason.

 

For Clock PLL testing I am waiting for a fresh sample of board with leopard MCU.Will update soon

after I have the board.

 

Thanks and Regards

Redevil

0 项奖励
回复