This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

openthread-freertos example with updated openthread library

Hi,

I am trying to compile examples/thread/freertos_coap_server with my version of openthread library. my reference is: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fthread_openthread_libraries.html&cp=5_3_2_1

The compiler gives following errors (some sample lines from the output)

../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-aes_alt_cc310.o): in function `aes_init':
undefined reference to `SaSi_AesInit'
../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-sdk.a(libopenthread_nrf52840_sdk_a-aes_alt_cc310.o): in function `aes_cc310_free':
undefined reference to `SaSi_AesFree'

continues like that. 

"Thread-safe libraries are located inside the mtls_ts directory."

Obviously, the original openthread code doesn't have this improvement and when I use it as my base code, I got those errors. Can you tell me the steps to compile that specific example with my custom openthread library please? Do you use another fork of openthread library? Is it possible to share it so I can continue with it? Or should I disable thread-safety totally? I appreciate if you can give me some tips to run this example with my modified version. (I tried MBEDTLS_THREADING=0 as directive but didn't help)

Best regards,

Vedat

Parents
  • Hi Vedat,

    I do not think that Crypto library from us has been designed or tested to be threadsafe. That is one of the reasons the openthread was forced to mtls_ts with freertos combo. 

    Or should I disable thread-safety totally? I

    I have learned about this problem lately in another support case, and unfortunately, I do not have all the information to answer you if you need to disable thread safety totally. The expert on this is on vacation and will be back in a few weeks. I can park this case until then.

  • Hi Susheel, thanks for your interest! Do you have any information about how to compile openthread libraries with mbedtls support so that I can replace the libraries in mtls_ts directory with my version of openthread? I would appreciate if you could provide me a starting point. 

  • ozanoner said:
    Do you have any information about how to compile openthread libraries with mbedtls support

    Really sorry for the very late reply, its the holiday season here in Norway and most of us are away. 

    Sorry, I do not have any information on how to compile the openthread libraries with mbedtls support. I assumed it should have been discussed in mbed support forums.

Reply Children
No Data
Related