From e044ddf974dfa45249d30336b86e323aa953cebb Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sun, 23 Jun 2019 06:20:17 -0700 Subject: [PATCH] enable dtcm (#856) --- firmware/config/stm32f7ems/efifeatures.h | 3 +-- firmware/global.h | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/firmware/config/stm32f7ems/efifeatures.h b/firmware/config/stm32f7ems/efifeatures.h index b034664db3..3ddf57cd7b 100644 --- a/firmware/config/stm32f7ems/efifeatures.h +++ b/firmware/config/stm32f7ems/efifeatures.h @@ -17,9 +17,8 @@ // Warning! This is a test config! -// todo: reconfigure RAM sections for STM32F7 #undef EFI_USE_CCM -#define EFI_USE_CCM FALSE +#define EFI_USE_CCM TRUE #undef EFI_POTENTIOMETER #define EFI_POTENTIOMETER FALSE diff --git a/firmware/global.h b/firmware/global.h index e55ed64389..28ca957dc1 100644 --- a/firmware/global.h +++ b/firmware/global.h @@ -80,13 +80,13 @@ typedef unsigned int time_t; /** * rusEfi is placing some of data structures into CCM memory simply * in order to use that memory - no magic about which RAM is faster etc. + * That said, CCM/TCM could be faster as there will be less bus contention + * with DMA. * * Please note that DMA does not work with CCM memory */ #if defined(STM32F7XX) -#undef EFI_USE_CCM -// todo: DTCM == CCM on STM32F7? -//#define CCM_RAM ".ram3" +#define CCM_RAM ".ram3" #else /* defined(STM32F4XX) */ #define CCM_RAM ".ram4" #endif /* defined(STM32F4XX) */