Invalidating Cache

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

Invalidating Cache

Jump to solution
425 Views
greenwichmeanie
Contributor III

We're using an S32K341. I understand that I can place DMA buffers into a noncacheable region but I'd prefer to perform DMA transfers and invalidate / clean cache by address.

We're using the RTD. Searching through the install, we can see these "by address" cache commands in files `Cache_IP.c/.h` but they weren't generated with our `.mex` file.

In the past I have used the CMSIS interface to perform this task but the code doesn't appear set up for this as far as I can tell.

For some background, we're using C++ and I've defined a class that will enforce the alignment and padding to the cache line lengths. I have a UART driver that encapsulates the RTD UART calls.

How can I access these cache functions?

0 Kudos
Reply
1 Solution
364 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you need to add Cache_Ip component into your project in Peripherals tool, enable CACHE support in it and finally Update code.

PetrS_0-1763982932209.png

BR, Petr

View solution in original post

1 Reply
365 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you need to add Cache_Ip component into your project in Peripherals tool, enable CACHE support in it and finally Update code.

PetrS_0-1763982932209.png

BR, Petr