I'm working with S32k358 uC and I'd like to disable data cache for memory region. In block diagram I see tree SRAM blocks SRAM0, SRAM1, SRAM2. Is it possible to disable data cache for SRAM2 and keep data cache for SRAM 0 and SRAM1?
Yes, it's easy to do this, just remove the macro: D_CACHE_ENABLE/I_CACHE_ENABLE in the related project, commonly in the project properties -> C/C++ Build -> Settings -> Tool Settings -> Standard S32DS C Compiler -> Preprocessor.