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

CONFIG_OPENTHREAD_JOINER_AUTOSTART=y -> results in -> otJoinerStart - undefined reference

Hello,

I have modified the Openthread-CoAP example.
I'm am tring to build a device, that will automatically join an exsisting thread network. So there is the joiner-autostart configuration mentioned in the docs.




Here is my modified config-file:
CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_NEWLIB_LIBC=y

# Enable floating point Hard ABI
CONFIG_FPU=y
CONFIG_FP_HARDABI=y

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_BUF=y
CONFIG_NET_CONNECTION_MANAGER=y

# Kernel options
CONFIG_MAIN_STACK_SIZE=3072
CONFIG_INIT_STACKS=y

# Increase set for threads with meta-irq priority
CONFIG_NUM_METAIRQ_PRIORITIES=1

# Logging
CONFIG_NET_LOG=y
CONFIG_NET_STATISTICS=y

# Disable certain parts of Zephyr IPv6 stack
CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n

# Stack sizes configuration
CONFIG_NET_TX_STACK_SIZE=1200
CONFIG_NET_RX_STACK_SIZE=1500

# Network buffers
CONFIG_NET_PKT_RX_COUNT=10
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NET_BUF_RX_COUNT=16
CONFIG_NET_BUF_TX_COUNT=16

# L2 OpenThread enabling
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y

CONFIG_OPENTHREAD_NORDIC_LIBRARY_FTD=y
CONFIG_OPENTHREAD_MANUAL_START=y
CONFIG_OPENTHREAD_JOINER=y
CONFIG_OPENTHREAD_JOINER_AUTOSTART=y

# Disable vanilla mbedtls in favor of custom backends
CONFIG_OPENTHREAD_MBEDTLS=n

# Disable unneeded mbedtls modules
CONFIG_MBEDTLS_CIPHER_MODE_CBC=n
CONFIG_MBEDTLS_CIPHER_MODE_CTR=n
CONFIG_MBEDTLS_CIPHER_MODE_CFB=n
CONFIG_MBEDTLS_CIPHER_MODE_OFB=n
CONFIG_MBEDTLS_CIPHER_MODE_XTS=n
CONFIG_MBEDTLS_GCM_C=n
CONFIG_MBEDTLS_CHACHA20_C=n
CONFIG_MBEDTLS_POLY1305_C=n
CONFIG_MBEDTLS_CHACHAPOLY_C=n
CONFIG_MBEDTLS_DHM_C=n
CONFIG_MBEDTLS_RSA_C=n
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_MBEDTLS_SHA512_C=n
CONFIG_MBEDTLS_HEAP_SIZE=10240

If i try to compile... the "otJoinerStart"-function can't be found by the linker. That means, there is none in the library?!!?



What is wrong? May be there is another config-option needed.

Please help me,

Thank you

Parents
  • Hi, 

    I have also been struggling to commission the OpenThread-CoAP example on my thread network. 

    I have tried all things mentioned above in your code, but still, when I flash the code on the nrf52840dk board, my DK board doesn't go inside the joiner start function instead it forms a thread network with hardcoded thread network configuration.

    If you are able to solve this issue for yourself, kindly share your code.

Reply
  • Hi, 

    I have also been struggling to commission the OpenThread-CoAP example on my thread network. 

    I have tried all things mentioned above in your code, but still, when I flash the code on the nrf52840dk board, my DK board doesn't go inside the joiner start function instead it forms a thread network with hardcoded thread network configuration.

    If you are able to solve this issue for yourself, kindly share your code.

Children
No Data
Related