Skip to content

Commit

Permalink
samples: lwm2m_client: Increase AT monitor heap
Browse files Browse the repository at this point in the history
Sometimes during "lte offline" or during FOTA the
AT monitor module may run out of heap space.

Increase the default AT monitor heap to same as with
assis-cell overlay.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
  • Loading branch information
SeppoTakalo authored and jfischer-no committed Mar 5, 2024
1 parent 16f08a0 commit 9fcb14b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions samples/cellular/lwm2m_client/overlay-assist-cell.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ CONFIG_LWM2M_RW_SENML_CBOR_SUPPORT=y
CONFIG_ZCBOR=y
CONFIG_ZCBOR_CANONICAL=y
CONFIG_LWM2M_RW_SENML_CBOR_RECORDS=35
# Increase AT monitor heap because %NCELLMEAS notifications can be large
CONFIG_AT_MONITOR_HEAP_SIZE=512

# AVSystem CDM-665 workaround: force object version reporting.
CONFIG_LWM2M_CONNMON_OBJECT_VERSION_1_3=y
1 change: 1 addition & 0 deletions samples/cellular/lwm2m_client/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_LWM2M_ENGINE_STACK_SIZE=3072
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_AT_MONITOR_HEAP_SIZE=512

# Allow FOTA downloads using download-client
CONFIG_DOWNLOAD_CLIENT=y
Expand Down

0 comments on commit 9fcb14b

Please sign in to comment.