Reset PLL2 and PLL3

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

Reset PLL2 and PLL3

Jump to solution
786 Views
christianbach
Contributor I

CPU boots from DDR Ram and i try to reset PLL2 and PLL3 with the following steps:

1. store clock registers

2. remap PLL2 clocks to PLL3

3. power down PLL2

4. reintialize PLL2 with PFDs

5. remap PLL3 clocks to PLL2

6. power down PLL3

7. reintialize PLL2 with PFDs

8. restore clock registers

At Step 1 when i switch CBCDR[periph_clk_sel] from PLL2 (528Mhz) to PLL3 (480) Mhz, the system crashes. What can i do to switch AHB and MMDC_CH0 to PLL3?

Labels (1)
0 Kudos
1 Solution
613 Views
igorpadykov
NXP Employee
NXP Employee

Hi Christian

PLL2 usually is used for DDR (MMDC module), so if program

runs from DDR, it is not possible to change clock (or source of clock)

of MMDC module. One needs to put DDR to self-refresh, jump to iRAM,

switch/change clocks for MMDC, then return to normal operation from DDR.

In general also crash can be caused by PFD gating, described in

EB790 Configuration of Phase Fractional Dividers

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
614 Views
igorpadykov
NXP Employee
NXP Employee

Hi Christian

PLL2 usually is used for DDR (MMDC module), so if program

runs from DDR, it is not possible to change clock (or source of clock)

of MMDC module. One needs to put DDR to self-refresh, jump to iRAM,

switch/change clocks for MMDC, then return to normal operation from DDR.

In general also crash can be caused by PFD gating, described in

EB790 Configuration of Phase Fractional Dividers

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
613 Views
christianbach
Contributor I

Hello igor,

thank you for your help.

0 Kudos