Hi,
I want to increase database size to handle big service and characteristic size. I have tried changing DB_HEAP_SZ in advanced config header and scatter config header,
however it still doesn't change in .map file. I increased DB_HEAP_SIZE to 2590, and DB_HEAP_SZ to 2578. However when I see .map file, it doesn't reflect that change:
Load Region LR_RETENTION_RAM2 (Base: 0x00080768, Size: 0x00000000, Max: 0x00002898, ABSOLUTE)
Execution Region ZI_RET20 (Base: 0x00080768, Size: 0x00000a8c, Max: 0x000022b8, ABSOLUTE, UNINIT)
Base Addr Size Type Attr Idx E Section Name Object
0x00080768 0x0000040c Zero RW 516 heap_db_area jump_table.o
0x00080b74 0x00000154 Zero RW 517 heap_env_area jump_table.o
0x00080cc8 0x0000052c Zero RW 519 heap_msg_area jump_table.o
Am I doing it wrong?
Thanks
嗨meriororen,
Can you please try to set the desirable heap size in the da1458x_config_advanced.h file. Just add a #DB_HEAP_SZ like the following snippet and give it a try:
#if defined(CFG_MEM_MAP_EXT_SLEEP) || !defined(CFG_MEM_MAP_DEEP_SLEEP)
#define REINIT_DESCRIPT_BUF 0 //0: keep in RetRAM, 1: re-init is required (set to 0 when Extended Sleep is used)
#define USE_MEMORY_MAP EXT_SLEEP_SETUP
#define DB_HEAP_SZ 2048
Thanks MT_dialog
That works. Thanks.