From 1275475194e153e454aafed36f879932e2cdb984 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Thu, 11 Nov 2021 21:47:08 -0500 Subject: [PATCH] fix for mg12 multi-admin (#11693) --- examples/platform/efr32/init_efrPlatform.cpp | 2 ++ third_party/efr32_sdk/efr32_sdk.gni | 3 +++ 2 files changed, 5 insertions(+) diff --git a/examples/platform/efr32/init_efrPlatform.cpp b/examples/platform/efr32/init_efrPlatform.cpp index b3e6625d567142..f251f48f5dbab1 100644 --- a/examples/platform/efr32/init_efrPlatform.cpp +++ b/examples/platform/efr32/init_efrPlatform.cpp @@ -53,6 +53,7 @@ extern "C" { #include "init_efrPlatform.h" #include "sl_component_catalog.h" +#include "sl_mbedtls.h" #include "sl_system_init.h" #if DISPLAY_ENABLED @@ -64,6 +65,7 @@ void initAntenna(void); void init_efrPlatform(void) { sl_system_init(); + sl_mbedtls_init(); #if DISPLAY_ENABLED initLCD(); diff --git a/third_party/efr32_sdk/efr32_sdk.gni b/third_party/efr32_sdk/efr32_sdk.gni index be6877976e479c..eac9039f07ca7c 100644 --- a/third_party/efr32_sdk/efr32_sdk.gni +++ b/third_party/efr32_sdk/efr32_sdk.gni @@ -137,6 +137,9 @@ template("efr32_sdk") { "CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI=1", "__HEAP_SIZE=0", "SL_CATALOG_FREERTOS_KERNEL_PRESENT=1", + "MBEDTLS_THREADING_C=1", + "MBEDTLS_THREADING_ALT=1", + "SL_THREADING_ALT=1", #"__STACK_SIZE=0", ]