MPC5644A Startup

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

MPC5644A Startup

177 Views
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 Kudos
Reply
4 Replies

115 Views
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 Kudos
Reply

111 Views
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 Kudos
Reply

72 Views
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 Kudos
Reply

104 Views
erdinc26
Contributor II
I have CodeWarrior for MCU Version: 10.6
0 Kudos
Reply