Skip to content

Commit

Permalink
[MATTER-247][K32W0] Enable dynamic allocation of packet buffers
Browse files Browse the repository at this point in the history
 * increased maximum number of fabrics supported
 * RAM1 is now entirely reserved for heap usage

Signed-off-by: Marius Tache <[email protected]>
  • Loading branch information
marius-alex-tache committed Aug 18, 2022
1 parent a871774 commit 9770933
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
* provision the device with its unique operational credentials and manage
* its own access control lists.
*/
#define CHIP_CONFIG_MAX_FABRICS 4 // 3 fabrics + 1 for rotation slack
#define CHIP_CONFIG_MAX_FABRICS 5 // 5 is the minimum number of supported fabrics

#define CHIP_DEVICE_CONFIG_ENABLE_SED 1
#define CHIP_DEVICE_CONFIG_SED_SLOW_POLLING_INTERVAL 1000_ms32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
* provision the device with its unique operational credentials and manage
* its own access control lists.
*/
#define CHIP_CONFIG_MAX_FABRICS 4 // 3 fabrics + 1 for rotation slack
#define CHIP_CONFIG_MAX_FABRICS 5 // 5 is the minimum number of supported fabrics

/**
* @def CHIP_IM_MAX_NUM_COMMAND_HANDLER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
* provision the device with its unique operational credentials and manage
* its own access control lists.
*/
#define CHIP_CONFIG_MAX_FABRICS 4 // 3 fabrics + 1 for rotation slack
#define CHIP_CONFIG_MAX_FABRICS 5 // 5 is the minimum number of supported fabrics

#define CHIP_DEVICE_CONFIG_ENABLE_SED 1
#define CHIP_DEVICE_CONFIG_SED_IDLE_INTERVAL 1000_ms32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ SECTIONS

_etext = .;

.heap_packet_buffer (COPY):
.heap (COPY):
{
*(.bss._ZN4chip6System12PacketBuffer11sBufferPoolE)
__HeapBase = .;
_heap = .;
KEEP(*(.heap*))
Expand Down
2 changes: 1 addition & 1 deletion src/platform/nxp/k32w/k32w0/SystemPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ struct ChipDeviceEvent;
// ==================== Platform Adaptations ====================
#define CHIP_SYSTEM_CONFIG_PLATFORM_PROVIDES_TIME 1
#define CHIP_SYSTEM_CONFIG_EVENT_OBJECT_TYPE const struct ::chip::DeviceLayer::ChipDeviceEvent *
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 9
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 0

// ========== Platform-specific Configuration Overrides =========
2 changes: 1 addition & 1 deletion third_party/nxp/k32w0_sdk/k32w0_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ template("k32w0_sdk") {
"USE_SDK_OSA=0",
"gSerialManagerMaxInterfaces_c=2",
"FSL_RTOS_FREE_RTOS=1",
"gTotalHeapSize_c=0xC700",
"gTotalHeapSize_c=0x10000",
"gUartDebugConsole_d=1",
"DEBUG_SERIAL_INTERFACE_INSTANCE=0",
"APP_SERIAL_INTERFACE_INSTANCE=1",
Expand Down

0 comments on commit 9770933

Please sign in to comment.