TI-OpenThread  1.08.03.09
Functions
CC26X2R1_LAUNCHXL/thread/doorlock_oad_secure/platform/crypto/crypto_misc.c File Reference
#include "mbedtls/config.h"
+ Include dependency graph for CC26X2R1_LAUNCHXL/thread/doorlock_oad_secure/platform/crypto/crypto_misc.c:

Functions

void mbedtls_debug_set_threshold (int threshold)
 

Function Documentation

§ mbedtls_debug_set_threshold()

void mbedtls_debug_set_threshold ( int  threshold)

when disabling MBEDTLS_SSL_DEBUG_ALL and MBEDTLS_DEBUG_C in openthread/etc/ti/CC26X2R1_LAUNCHXL/ccs/config/mbedtls_config-cc1352 or openthread/etc/ti/CC26X2R1_LAUNCHXL/ccs/config/mbedtls_config-cc2652 during linkage, we saw the error <Linking>

undefined first referenced symbol in file


mbedtls_debug_set_threshold <whole-program>

The root cause is that

  1. mbedtls_debug_set_threshold is called in dlts.cpp (openthead)
  2. when MBEDTLS_SSL_DEBUG_ALL and MBEDTLS_DEBUG_C are disabled, this function is not built in mbedTLS lib
  3. during the link, you will see this error.

In order to fix this issue.

  1. when MBEDTLS_SSL_DEBUG_ALL and MBEDTLS_DEBUG_C are disabled, don't call this function. This means we need to modify the openthread code.
  2. when MBEDTLS_SSL_DEBUG_ALL and MBEDTLS_DEBUG_C are disabled, in mbedTLS we build dummy mbedtls_debug_set_threshold. This means we need to modify the mbedTLS code.
  3. in application code, we provide the dummy mbedtls_debug_set_threshold.

We prefer the option 3.

© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale