Giovanni wrote:Hi,
No need to struggle too much, in mcuconf.h there is this:Code: Select all
/*
* Memory attributes settings.
*/
#define STM32_NOCACHE_MPU_REGION MPU_REGION_6
#define STM32_NOCACHE_SRAM1_SRAM2 FALSE
#define STM32_NOCACHE_SRAM3 TRUE
The related code is in hal_lld.c, you can use that as example.
Giovanni
Giovanni, there seems to be a bug here - SRAM3 is 32k according to the reference manual but we are only locking 16k