while(MC_ME.GS.B.S_MTRANS == 1); /* Wait for mode transition complete */ Stucked in this step when debugging

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

while(MC_ME.GS.B.S_MTRANS == 1); /* Wait for mode transition complete */ Stucked in this step when debugging

782 次查看
yuzhuyang
Contributor I

hello expert:

when i try to debug with MULTI the sample boot project, program  paused in step below:

while(MC_ME.GS.B.S_MTRANS == 1); /* Wait for mode transition complete */ 

any comments on this section when debugg with MULTI load elf built by GHS?

thanks!

标签 (1)
标记 (1)
0 项奖励
2 回复数

550 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You dont have probably configured clocks. Most probably PLL is unlocked and you are asking micro to be supplied by PLL.

Check your clock sources if they are correct.

Peter

0 项奖励

550 次查看
yuzhuyang
Contributor I

Hi Peter ,

I deleted this wait program, and debug the erase, then everything goes well. 

while we have this sentence debugging, program stopped and wait for ever. 

CLOCK configured before this line. otherwise programming goes wrong, i think.

thanks for your professional  comments!

regards,

Yang

0 项奖励