diff --git a/firmware/config/boards/hellen/small-can-board/board.mk b/firmware/config/boards/hellen/small-can-board/board.mk index dc5afff3ad..ef12386140 100644 --- a/firmware/config/boards/hellen/small-can-board/board.mk +++ b/firmware/config/boards/hellen/small-can-board/board.mk @@ -5,8 +5,10 @@ DDEFS += -DSHORT_BOARD_NAME=small-can #DDEFS += -DEFI_SENT_SUPPORT=TRUE +DDEFS += -DPERSISTENT_LOCATION_VALUE=\"__attribute__\(\(section\(\\\".ram1\\\"\)\)\)\" +DDEFS += -DPERSISTENT_LOCATION_TODO DDEFS += -DEFI_SENSOR_CHART=FALSE -DDEFS += -DLUA_USER_HEAP=50000 +DDEFS += -DLUA_USER_HEAP=30000 DDEFS += -DEFI_MC33816=FALSE DDEFS += -DDL_OUTPUT_BUFFER=1000 DDEFS += -DEFI_LOGIC_ANALYZER=FALSE diff --git a/firmware/config/boards/hellen/small-can-board/prepend.txt b/firmware/config/boards/hellen/small-can-board/prepend.txt index 0a6246857b..c14ba9c0e2 100644 --- a/firmware/config/boards/hellen/small-can-board/prepend.txt +++ b/firmware/config/boards/hellen/small-can-board/prepend.txt @@ -9,4 +9,4 @@ #define ts_show_etb_pins false #define ts_show_analog_divider false -#define LUA_SCRIPT_SIZE 60000 \ No newline at end of file +#define LUA_SCRIPT_SIZE 30000 \ No newline at end of file diff --git a/firmware/controllers/persistent_store.cpp b/firmware/controllers/persistent_store.cpp index 893e5c2830..71fda80039 100644 --- a/firmware/controllers/persistent_store.cpp +++ b/firmware/controllers/persistent_store.cpp @@ -27,7 +27,14 @@ #include "sensor_chart.h" #include "trigger_central.h" -persistent_config_container_s persistentState CCM_OPTIONAL; +#ifndef PERSISTENT_LOCATION_TODO +#define PERSISTENT_LOCATION CCM_OPTIONAL +#else +#pragma message(PERSISTENT_LOCATION_VALUE) +#define PERSISTENT_LOCATION __attribute__((section(".ram1"))) +#endif + +persistent_config_container_s persistentState PERSISTENT_LOCATION; #else // EFI_UNIT_TEST