small-can-board: PERSISTENT_LOCATION do not use ram1

ram1 is a part of ram0 region. ram0 region concatinate ram1, ram2
and optional ram3. linker don't care if regions are overlapped.
So persistentState manualy put into ram1 was overlapping stack
located in ram0.

(gdb) info symbol 0x20000000
__main_stack_base__ in section .mstack
persistentState in section .ram1
(gdb) p/x &persistentState
$24 = 0x20000000
(gdb) p/x &__main_stack_base__
$26 = 0x20000000
(gdb) load
This commit is contained in:
Andrey Gusakov 2024-07-24 00:11:20 +03:00 committed by rusefillc
parent 7f25c1cad2
commit 9cfb381a96
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ DDEFS += -DSTATIC_BOARD_ID=STATIC_BOARD_ID_SMALL_CAN_BOARD
#DDEFS += -DEFI_SENT_SUPPORT=TRUE
DDEFS += -DPERSISTENT_LOCATION="__attribute__((section(\".ram1\")))"
DDEFS += -DPERSISTENT_LOCATION="__attribute__((section(\".ram0\")))"
DDEFS += -DEFI_SENSOR_CHART=FALSE
DDEFS += -DLUA_USER_HEAP=50000
DDEFS += -DEFI_IDLE_CONTROL=FALSE