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
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
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.
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
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
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
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