Skip to content
/ ot-nxp Public
forked from openthread/ot-nxp

Commit

Permalink
k32w1: fix TLS handshaking
Browse files Browse the repository at this point in the history
Double the OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE (to 16k)
so that TLS handshaking succeeds.

A smaller size will cause the process to fail with
memory allocation error (MBEDTLS_ERR_MPI_ALLOC_FAILED -0x0010)

Signed-off-by: George Stefan <[email protected]>
  • Loading branch information
George-Stefan committed Nov 22, 2023
1 parent 6527338 commit a926e80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/k32w1/k32w1/openthread-core-k32w1-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,12 @@
*
* The size of heap buffer when DTLS is enabled.
*
* From this pool, memory is allocated during TLS handshaking and commissioning.
* A smaller size will cause the process to fail with memory allocation error.
*
*/
#ifndef OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE
#define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE (2048 * sizeof(void *))
#define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE (4096 * sizeof(void *))
#endif

/**
Expand Down

0 comments on commit a926e80

Please sign in to comment.