How to configurate the flash optimization of MPC5646C

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

How to configurate the flash optimization of MPC5646C

Jump to solution
780 Views
Chenlong
Contributor II

I am using MPC5646C with clock 120MHz, and there are lots of task to excute in this cpu. I want to configure the flash optimization  to make MPC5646C run faster. Can you tell me how to do it?

1 Solution
638 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, if you are using CodeWarrior, flash optimization is included in the file __ppc_eabi_init.c.

pastedImage_1.png

PFCR0 register contains setting of particular number of wait states according datasheet (please check whether it fits to recommended values):

pastedImage_2.png

In principle it is quite well described in AN2865, section 25, description for MPC56xxB/P/S

http://www.nxp.com/files/32bit/doc/app_note/AN2865.pdf 

Also MPC5646C Microcontroller Reference Manual, Rev. 5 has chapter "Performance Optimization" that is quite well described on this device.

Hope it helps

View solution in original post

2 Replies
639 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, if you are using CodeWarrior, flash optimization is included in the file __ppc_eabi_init.c.

pastedImage_1.png

PFCR0 register contains setting of particular number of wait states according datasheet (please check whether it fits to recommended values):

pastedImage_2.png

In principle it is quite well described in AN2865, section 25, description for MPC56xxB/P/S

http://www.nxp.com/files/32bit/doc/app_note/AN2865.pdf 

Also MPC5646C Microcontroller Reference Manual, Rev. 5 has chapter "Performance Optimization" that is quite well described on this device.

Hope it helps

638 Views
Chenlong
Contributor II

Thanks very much, your relply is very timely and helpful. ^_^

0 Kudos