Hello @VO ,
For the STM32MP25x series, the cacheable status of memory regions is not directly configurable through the RIF sections in STM32CubeMX.
A memory mapping for the OpenSTLinux architecture is available in OP-TEE in the dts file name with "resmem" at the end of the name, for example "stm32mp257f-ev1-ca35tdcid-ostl-resmem.dtsi". You can see a complete mapping which will be used by the OSTL side.
If you are talking about the M33 cacheable region, you can normally find the ICACHE and DCACHE configuration in the main.c of the project. For instance, with the project "OpenAMP_TTY_echo", you will see these descriptions in "OpenAMP/OpenAMP_TTY_echo/CM33/NonSecure/Core/Src/main.c":
static void MX_ICACHE_Init(void)
{
if(HAL_ICACHE_DeInit() != HAL_OK)
{
while(1);
}
ICACHE_RegionConfigTypeDef pRegionConfig = {0};
pRegionConfig.TrafficRoute = ICACHE_MASTER2_PORT;
pRegionConfig.OutputBurstType = ICACHE_OUTPUT_BURST_INCR;
pRegionConfig.Size = ICACHE_REGIONSIZE_2MB;
pRegionConfig.BaseAddress = 0x00000000;
pRegionConfig.RemapAddress = 0x80000000;
And also in the function "MPU_Config" in the same file.
Is it what you are looking for?
Best Regards,
Kevin