How to validate program cache RAM after system reset

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

cross mob
Hui
Level 1
Level 1
First like received First reply posted First question asked

I want to use program cache RAM of (70102000 -  ) to run my flash drive of boot loader. 

But I found that the program cache RAM is invalidated after a system reset.

This is mentioned int the user manual . 

I have enable the cache register( program cache not bypass), but the program cache RAM still not available after  system reset.

So I want to know how to enable or reinitialize the program cache RAM after system reset? Thanks.

Hui_0-1646017586277.pngHui_1-1646017609075.png

 

 

0 Likes
1 Solution
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

After each reset you must map the cache to normal address map. Please see user manual chapter 13.3.4.2 Memory Map selection, table 24 (Address Map) and in Appendix chapter 13.4.2 MEMMAP Implementation

View solution in original post

7 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored
IFX_INLINE void IfxCpu_enableSegmentSpecificInstructionAccessCacheability(uint16 segmentNumberMask, boolean enable);

Hi Hui,

Above function is for your reference.

dw

0 Likes
Hui
Level 1
Level 1
First like received First reply posted First question asked

Hi dw,

The PCACHE SRAM is still not available with the function after system reset.

Mod tells me  "The cache will be invalidated on every reset. This is not switchable.", is it true?

Hui_0-1646108051260.png

 

 

 

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

Why you don't use the PSPR?

The cache will be invalidated on every reset. This is not switchable. Please note that the cache is not the same as PSPR which can be always directly access.

0 Likes
Hui
Level 1
Level 1
First like received First reply posted First question asked

The PSPR of TC33LP is just 8KB not big enough for me, but the PCACHE RAM is 32KB. 

0 Likes
Hui
Level 1
Level 1
First like received First reply posted First question asked

So you mean that after reset, PCACHE SRAM  can no longer be used?

0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored

After each reset you must map the cache to normal address map. Please see user manual chapter 13.3.4.2 Memory Map selection, table 24 (Address Map) and in Appendix chapter 13.4.2 MEMMAP Implementation

Hui
Level 1
Level 1
First like received First reply posted First question asked

Hi MoD,

The PCACHE can run my code normal as your way(MTU_MEMMAP.B.CPU0_PCMAP = 1;)

after system reset. Thanks a lot.