MPC5774P Out of near RAM

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

MPC5774P Out of near RAM

709 Views
latheef
Contributor III

Hi,

We are out of  RAM (64k)  and now when I move some of the OS task stack to System Ram (384K) its affecting the performance of the system. Please let me know how to proceed with this.

Will Enabling the Data Cache for System Ram help? If so please let me know how to do it?

0 Kudos
3 Replies

693 Views
latheef
Contributor III

@davidtosenovjan  and all,

I am trying to enable the D cache in MPC5774P (Core e200 z425). But when I refer the core manual it says D Cache not present in e200z4 but the mpc5774p say its present. Please enlighten me. 

latheef_1-1681383760197.png

Also my requirement for D-cache(if present)is as below:

1)  Dont enable the D-cache for D-mem (starting at 0x5080000) as it access is as fast as cashe but better (no cache miss)

2) Enable the D-cache only for SRAM @ 0x40000000 but with exception for calibration variable at the 0x40000000 - 0x40001000. So  out of 0x40000000, only 0x40001000 - end should be cached.

Please let me know how to proceed on this. 

Thanks,

 

 

 

Tags (1)
0 Kudos

633 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

1) Dont enable the D-cache for D-mem (starting at 0x5080000) as it access is as fast as cashe but better (no cache miss)

Well, this makes no sense.

2) Enable the D-cache only for SRAM @ 0x40000000 but with exception for calibration variable at the 0x40000000 - 0x40001000. So out of 0x40000000, only 0x40001000 - end should be cached.

For enabling Data cache, you will need to set SMPU.

1. define range you want to cover by cache in WORD registers.

In SMPU_RGDn_WORD3 you will enable cache for that particular address range:

petervlna_1-1682328467216.png

petervlna_2-1682328475265.png

Define in word 2 type of cache to be enabled:

petervlna_3-1682328661634.png

petervlna_4-1682328688382.png

2. Enable cache in L1CSRx registers.

petervlna_0-1682328379271.png

Best regards,

Peter

 

 

 

0 Kudos

676 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am trying to enable the D cache in MPC5774P (Core e200 z425). But when I refer the core manual it says D Cache not present in e200z4 but the mpc5774p say its present. Please enlighten me.

Generally for z4 not. But MPC5744P use version Zen z4251n3

petervlna_0-1681898104419.png

Best regards,
Peter