diff --git a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/mcuconf.h b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/mcuconf.h index 1adb2772f..a465b05c2 100644 --- a/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/mcuconf.h +++ b/demos/STM32/NASA-OSAL-STM32F746G-DISCOVERY/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/NIL-STM32F746G-DISCOVERY/cfg/mcuconf.h b/demos/STM32/NIL-STM32F746G-DISCOVERY/cfg/mcuconf.h index ab9820731..7f9f6e490 100644 --- a/demos/STM32/NIL-STM32F746G-DISCOVERY/cfg/mcuconf.h +++ b/demos/STM32/NIL-STM32F746G-DISCOVERY/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/mcuconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/mcuconf.h index fd214685a..d338c1fbe 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/mcuconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB-HTTPS/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/mcuconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/mcuconf.h index fd214685a..d338c1fbe 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/mcuconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/mcuconf.h b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/mcuconf.h index 9562564fd..f62f0dd46 100644 --- a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/mcuconf.h +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f769_discovery/mcuconf.h @@ -39,9 +39,21 @@ #define STM32F779_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -98,7 +110,6 @@ #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK #define STM32_SDMMC2SEL STM32_SDMMC2SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/mcuconf.h index 161ce2d8e..85e3039be 100644 --- a/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F722ZE-NUCLEO144/cfg/mcuconf.h @@ -38,9 +38,21 @@ #define STM32F733_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -95,7 +107,6 @@ #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK #define STM32_SDMMC2SEL STM32_SDMMC2SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/mcuconf.h b/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/mcuconf.h index ab9820731..7f9f6e490 100644 --- a/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F746G-DISCOVERY/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/mcuconf.h index bf8a771a5..46d1b1b11 100644 --- a/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F746ZG-NUCLEO144/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/mcuconf.h index bf8a771a5..46d1b1b11 100644 --- a/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F756ZG-NUCLEO144/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/mcuconf.h index 46732c693..338ded0dd 100644 --- a/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F767ZI-NUCLEO144/cfg/mcuconf.h @@ -39,9 +39,21 @@ #define STM32F779_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -98,7 +110,6 @@ #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK #define STM32_SDMMC2SEL STM32_SDMMC2SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/mcuconf.h b/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/mcuconf.h index 6922a2d09..9e73ad6a1 100644 --- a/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32F769I-DISCOVERY/cfg/mcuconf.h @@ -39,9 +39,21 @@ #define STM32F779_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -98,7 +110,6 @@ #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK #define STM32_SDMMC2SEL STM32_SDMMC2SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/demos/STM32/RT-VFS-FATFS/cfg/stm32f769ni_discovery/mcuconf.h b/demos/STM32/RT-VFS-FATFS/cfg/stm32f769ni_discovery/mcuconf.h index 91bce31d7..39d0396b1 100644 --- a/demos/STM32/RT-VFS-FATFS/cfg/stm32f769ni_discovery/mcuconf.h +++ b/demos/STM32/RT-VFS-FATFS/cfg/stm32f769ni_discovery/mcuconf.h @@ -39,9 +39,21 @@ #define STM32F779_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -98,7 +110,6 @@ #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK #define STM32_SDMMC2SEL STM32_SDMMC2SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/readme.txt b/readme.txt index b5d48f7e8..f9d4ea5d7 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ ***************************************************************************** *** Next *** +- NEW: Enhanced STM32F7xx MPU configuration in mcuconf.h. - NEW: I2C slave support in HAL high level driver. - NEW: Added settings for STM32 OCTOSPIv1 and OCTOSPIv2 TCR bits SSHIFT and DHQC. diff --git a/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/mcuconf.h b/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/mcuconf.h index b739cb8ae..02a6922d7 100644 --- a/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/mcuconf.h +++ b/testex/STM32/STM32F7xx/SPI-ADXL355/cfg/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/mcuconf.h b/testhal/STM32/STM32F7xx/GPT-ADC/mcuconf.h index 9b25b0c95..9ca0f98f9 100644 --- a/testhal/STM32/STM32F7xx/GPT-ADC/mcuconf.h +++ b/testhal/STM32/STM32F7xx/GPT-ADC/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/mcuconf.h b/testhal/STM32/STM32F7xx/PWM-ICU/mcuconf.h index 46076e112..458d84e3c 100644 --- a/testhal/STM32/STM32F7xx/PWM-ICU/mcuconf.h +++ b/testhal/STM32/STM32F7xx/PWM-ICU/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/STM32F7xx/USB_RAW/mcuconf.h b/testhal/STM32/STM32F7xx/USB_RAW/mcuconf.h index 7f8b3543c..df89b3b31 100644 --- a/testhal/STM32/STM32F7xx/USB_RAW/mcuconf.h +++ b/testhal/STM32/STM32F7xx/USB_RAW/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h index 4789657a7..1bd815884 100644 --- a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h +++ b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h index ab9820731..7f9f6e490 100644 --- a/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h +++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/mcuconf.h b/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/mcuconf.h index 76dc9452f..5e0db5a20 100644 --- a/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/mcuconf.h +++ b/testhal/STM32/multi/RTC/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/mcuconf.h b/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/mcuconf.h index bb6f4080e..ed74e3c09 100644 --- a/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/mcuconf.h +++ b/testhal/STM32/multi/SPI/cfg/stm32f746ng_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/UART/cfg/stm32f746_discovery/mcuconf.h b/testhal/STM32/multi/UART/cfg/stm32f746_discovery/mcuconf.h index 76dc9452f..5e0db5a20 100644 --- a/testhal/STM32/multi/UART/cfg/stm32f746_discovery/mcuconf.h +++ b/testhal/STM32/multi/UART/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings. diff --git a/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/mcuconf.h b/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/mcuconf.h index 7f9a59c28..68f4aa57c 100644 --- a/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/mcuconf.h +++ b/testhal/STM32/multi/USB_CDC/cfg/stm32f746_discovery/mcuconf.h @@ -36,9 +36,21 @@ #define STM32F756_MCUCONF /* - * HAL driver system settings. + * General settings. */ #define STM32_NO_INIT FALSE + +/* + * Memory attributes settings. + */ +#define STM32_NOCACHE_ENABLE TRUE +#define STM32_NOCACHE_MPU_REGION MPU_REGION_6 +#define STM32_NOCACHE_RBAR 0x2004C000U +#define STM32_NOCACHE_RASR MPU_RASR_SIZE_16K + +/* + * HAL driver system settings. + */ #define STM32_PVD_ENABLE FALSE #define STM32_PLS STM32_PLS_LEV0 #define STM32_BKPRAM_ENABLE FALSE @@ -94,7 +106,6 @@ #define STM32_CECSEL STM32_CECSEL_LSE #define STM32_CK48MSEL STM32_CK48MSEL_PLL #define STM32_SDMMC1SEL STM32_SDMMC1SEL_PLL48CLK -#define STM32_SRAM2_NOCACHE FALSE /* * IRQ system settings.