From 4e7d6e23646d640e635b888bc7d4390c30979670 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 9 Jan 2022 22:44:22 -0500 Subject: [PATCH] random piece of https://github.com/dron0gus/rusefi/tree/f429-discovery-ram-dev --- firmware/config/stm32f4ems/efifeatures.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index e2d2486b2f..110d16f48f 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -257,10 +257,14 @@ #define EFI_CONSOLE_USB_DEVICE SDU1 -// F42x has more memory, so we can: -// - use compressed USB MSD image (requires 32k of memory) -// - use perf trace (requires ~16k of memory) -#ifdef EFI_IS_F42x +#if defined(EFI_HAS_EXT_SDRAM) + #define ENABLE_PERF_TRACE TRUE + #define LUA_USER_HEAP (1 * 1024 * 1024) + #define LUA_SYSTEM_HEAP (1 * 1024 * 1024) +#elif defined(EFI_IS_F42x) + // F42x has more memory, so we can: + // - use compressed USB MSD image (requires 32k of memory) + // - use perf trace (requires ~16k of memory) #define EFI_USE_COMPRESSED_INI_MSD #define ENABLE_PERF_TRACE TRUE