Skip to content

Commit

Permalink
samples: nrfcloud_multi_service: Decrease heap usage
Browse files Browse the repository at this point in the history
Not enough RAM to build the coap + nrf_provisioning + modem_trace
combination. Lowering heap usage to make space.

Lowering MAX_OUTGOING_MESSAGES to fit new heap.

Added twister build of trace configuration.

Signed-off-by: Jorgen Kvalvaag <[email protected]>
  • Loading branch information
jorgenmk committed Jun 4, 2024
1 parent d54a7e1 commit e9357a0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/cellular/nrf_cloud_multi_service/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ config LED_THREAD_STACK_SIZE

config MAX_OUTGOING_MESSAGES
int "Outgoing message maximum"
default 50
default 25
help
Sets the maximum number of device messages which may be enqueued
before further messages are dropped.
Expand Down
2 changes: 1 addition & 1 deletion samples/cellular/nrf_cloud_multi_service/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_AT_MONITOR_HEAP_SIZE=2048
CONFIG_AT_HOST_STACK_SIZE=2048
# Extended memory heap size needed both for PGPS and for encoding JSON-based nRF Cloud Device Messages.
CONFIG_HEAP_MEM_POOL_SIZE=24576
CONFIG_HEAP_MEM_POOL_SIZE=19000
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# Enable Networking and Connection Manager.
Expand Down
14 changes: 14 additions & 0 deletions samples/cellular/nrf_cloud_multi_service/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ tests:
- nrf9160dk/nrf9160/ns
extra_args: EXTRA_CONF_FILE="overlay_coap.conf;overlay_min_coap.conf"
tags: ci_build sysbuild
sample.cellular.nrf_cloud_multi_service.coap.trace:
sysbuild: true
build_only: true
platform_allow:
- nrf9151dk/nrf9151/ns
- nrf9160dk/nrf9160/ns
- nrf9161dk/nrf9161/ns
integration_platforms:
- nrf9151dk/nrf9151/ns
- nrf9160dk/nrf9160/ns
- nrf9161dk/nrf9161/ns
extra_args: EXTRA_CONF_FILE="overlay_coap.conf;overlay-coap_nrf_provisioning.conf"
nrf_cloud_multi_service_SNIPPET=nrf91-modem-trace-uart
tags: ci_build sysbuild
sample.cellular.nrf7002ek_wifi.scan:
sysbuild: true
build_only: true
Expand Down

0 comments on commit e9357a0

Please sign in to comment.