Skip to content

Commit

Permalink
Limit the number of admins default on TI platform. Increased the CHIP…
Browse files Browse the repository at this point in the history
…_STACK size on TI platform. Increased heap size in pump apps. (#12473)
  • Loading branch information
andersbangGF authored and pull[bot] committed Mar 23, 2023
1 parent 1b90471 commit 9158719
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pump-app/cc13x2x7_26x2x7/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <ti/drivers/SHA2.h>

#include <bget.h>
#define TOTAL_ICALL_HEAP_SIZE (0xc000)
#define TOTAL_ICALL_HEAP_SIZE (0xE000)

using namespace ::chip;
using namespace ::chip::Inet;
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-controller-app/cc13x2x7_26x2x7/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <ti/drivers/SHA2.h>

#include <bget.h>
#define TOTAL_ICALL_HEAP_SIZE (0xc000)
#define TOTAL_ICALL_HEAP_SIZE (0xE000)

using namespace ::chip;
using namespace ::chip::Inet;
Expand Down
2 changes: 1 addition & 1 deletion src/platform/cc13x2_26x2/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

// ========== CHIP Platform Configuration =========

#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE (6144)
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE (8192)

#define BLEMANAGER_EVENT_HANDLER_STACK_SIZE (4096)
#define BLEMANAGER_EVENT_HANDLER_PRIORITY (2)
Expand Down
5 changes: 5 additions & 0 deletions src/platform/cc13x2_26x2/CHIPPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
#define CHIP_CONFIG_MAX_LOCAL_ADDR_UDP_ENDPOINTS 4
#endif // CHIP_CONFIG_MAX_LOCAL_ADDR_UDP_ENDPOINTS

// Limit the number of device admins to ensure enough ressources for handling them
#ifndef CHIP_CONFIG_MAX_DEVICE_ADMINS
#define CHIP_CONFIG_MAX_DEVICE_ADMINS 5
#endif // CHIP_CONFIG_MAX_DEVICE_ADMINS

// ==================== Security Configuration Overrides ====================

#ifndef CHIP_CONFIG_MAX_APPLICATION_GROUPS
Expand Down

0 comments on commit 9158719

Please sign in to comment.