Progressive Clock Switching for MPC5744P

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

Progressive Clock Switching for MPC5744P

2,456 次查看
jonas_andersson
Contributor I

We are using the MCP5744P MCU and have had problem with voltage fluctuations when the clocks are initialized. In the reference manual there is a section about Progressive Clock Switching (PCS) and we have used the AN5304 application note in order to implement this feature.

When running the example in AN5304 the core get stuck in an exception (machine_check_int_handler) when trying to start the core (with the line of code attached below) and need help to understand why we end up in this state.

/******************** Start the core **********************/
/* Main and checker cores running in RUN3:0, DRUN, SAFE, TEST modes */
MC_ME.CCTL0.R = 0x00FE;

Notes/Observations

  • When reading the value of MC_ME.CCTL0.R I can see that it already has the expected value (0x00FE) before the assignment.  
  • The MCU has an external oscillator with 24MHz (40 MHz in example). 

AN5304 application note link:

https://www.nxp.com/docs/en/application-note/AN5304.pdf 

0 项奖励
回复
3 回复数

2,111 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Did you reconfigured clock initialization from  40MHz XOSC to 24MHz?

Peter

0 项奖励
回复

2,111 次查看
jonas_andersson
Contributor I

Hi Peter,

The XOSC we have is 16MHz (not 24MHz as I previously wrote) and we have configured PLL0/1 parameter to use PLL0_PHI1 as input to PLL1_PHI.

The output frequency of PLL1_PHI is 200MHz, same as in the example in AN5304 and we have also used the same PCS parameters as in the example (MC_CGM.AC4_SC.B.SELCTL is changed from XOSC to PLL0_PHI1).

0 项奖励
回复

2,111 次查看
meedandeys
Contributor III

Hello Jonas, 

Do  you have any resolution for this issue ? I am seeing similar issue. Please provide the resolution if you have.

Thanks

0 项奖励
回复