From 8680acdfea0dbf19a4677afc5f105425f6bd7605 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 24 Jun 2023 00:39:53 -0400 Subject: [PATCH] only:small-can-board --- firmware/config/boards/hellen/small-can-board/board.mk | 4 ++-- firmware/controllers/lua/lua.cpp | 6 +++--- firmware/controllers/persistent_store.cpp | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/firmware/config/boards/hellen/small-can-board/board.mk b/firmware/config/boards/hellen/small-can-board/board.mk index 2bbebfe527..2196bfe57e 100644 --- a/firmware/config/boards/hellen/small-can-board/board.mk +++ b/firmware/config/boards/hellen/small-can-board/board.mk @@ -5,8 +5,8 @@ DDEFS += -DSHORT_BOARD_NAME=small-can-board #DDEFS += -DEFI_SENT_SUPPORT=TRUE -#DDEFS += -DPERSISTENT_LOCATION_VALUE=\"__attribute__\(\(section\(\\\".ram1\\\"\)\)\)\" -#DDEFS += -DPERSISTENT_LOCATION_TODO +DDEFS += -DPERSISTENT_LOCATION_VALUE=\"__attribute__\(\(section\(\\\".ram1\\\"\)\)\)\" +DDEFS += -DPERSISTENT_LOCATION_TODO DDEFS += -DEFI_SENSOR_CHART=FALSE # DDEFS += -DLUA_USER_HEAP=50000 DDEFS += -DEFI_MC33816=FALSE diff --git a/firmware/controllers/lua/lua.cpp b/firmware/controllers/lua/lua.cpp index b6b774dcf3..06ff854c70 100644 --- a/firmware/controllers/lua/lua.cpp +++ b/firmware/controllers/lua/lua.cpp @@ -17,9 +17,9 @@ #define LUA_USER_HEAP 1 #endif // LUA_USER_HEAP -#ifdef PERSISTENT_LOCATION_TODO -#define LUA_HEAD_RAM_SECTION CCM_OPTIONAL -#endif +//#ifdef PERSISTENT_LOCATION_TODO +//#define LUA_HEAD_RAM_SECTION CCM_OPTIONAL +//#endif static char luaUserHeap[LUA_USER_HEAP] #ifdef EFI_HAS_EXT_SDRAM diff --git a/firmware/controllers/persistent_store.cpp b/firmware/controllers/persistent_store.cpp index 71fda80039..85273d838e 100644 --- a/firmware/controllers/persistent_store.cpp +++ b/firmware/controllers/persistent_store.cpp @@ -31,7 +31,8 @@ #define PERSISTENT_LOCATION CCM_OPTIONAL #else #pragma message(PERSISTENT_LOCATION_VALUE) -#define PERSISTENT_LOCATION __attribute__((section(".ram1"))) +#define PERSISTENT_LOCATION CCM_OPTIONAL +//#define PERSISTENT_LOCATION __attribute__((section(".ram1"))) #endif persistent_config_container_s persistentState PERSISTENT_LOCATION;