enable dtcm (#856)

This commit is contained in:
Matthew Kennedy 2019-06-23 06:20:17 -07:00 committed by rusefi
parent e790dadfe5
commit e044ddf974
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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) */