MPC5644A Startup

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

MPC5644A Startup

180 次查看
erdinc26
Contributor II

Hello,

I work on MPC5644A with XPC56XX 324BGA. 

If I use default startup files provided by IDE, I can't initialize system clock. (In debug, I can't step forward after setting enhanced mode (EMODE) bit in ESYNCR1)

What can cause this problem in startup files? (I work on FLASH)

Best regards,

Erdinc

0 项奖励
回复
4 回复数

118 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @erdinc26 

which IDE do you have? Clocks are initialized by user's code, not by startup files.

You can try to generate clock initialization code by this calculator:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Excel-MPC55xx-MPC56xx-PLL-Calculator/ta-p/112100...

Regards,

Lukas

0 项奖励
回复

114 次查看
erdinc26
Contributor II
Thanks for your answer @lukaszadrapa
Essentially, I have a different startup file. Its differences between generated by IDE are flash config. (Reset vector and clock freq. of flash). That works with my code. I can initialize my clock with these settings.
I thought that there is something doesn't match with my main code. I'm trying to find this issue. Do you have any idea?
Best regards,
Erdinc
0 项奖励
回复

75 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

That's too general description, so I can't really say. Important point is to have all the clock settings within the spec and also double check flash wait states.

0 项奖励
回复

107 次查看
erdinc26
Contributor II
I have CodeWarrior for MCU Version: 10.6
0 项奖励
回复