Why does my program run slowly from PFLASH?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17740
Level 4
Level 4
First solution authored First like received
Hello,

Why does my program execute much faster from RAM than from PFLASH?

Thank you.

Regards
Bernie


#8042000 12436
0 Likes
1 Reply
User17612
Level 4
Level 4
First like received
Hi,

The FSI2 clock is used for reading from PFLASH. Make sure that CCUCON0.FSI2DIV is set to the maximum allowed frequency (fFSI2 in the datasheet).

For best performance, also ensure that you have enabled program cache (PCON0.PCBYP=0), and that you are executing from the cached segment (0x8 instead of 0xA).

Regards
Lucas
0 Likes