New to Zephyr it has been reasonably straightforward building the UDP sample application to enable an nRF9160 dev board to send and receive UDP messages via NB/IoT to/from a remote server (running a Python based UDP server). For our target application I now need to secure this link with Mbed DTLS using PSKs but am having problems getting a modified sample to build properly. The modifications include adding overlay-tls.conf taken from the client-echo example that incorporates DTLS but doesn't run on nRF9160 out of the box. Maybe a simple Zephyr misunderstanding.
There are several unsatisfied dependencies warnings during the build that I'm having trouble understanding.
warning: MBEDTLS_KEY_EXCHANGE_PSK_ENABLED (defined at
D:\Users\ron\ncs\v2.0.0\zephyr\modules\mbedtls\Kconfig.tls-generic:70,
D:\Users\ron\ncs\v2.0.0\nrfxlib\nrf_security\Kconfig.tls:343, modules\mbedtls\Kconfig.tls-
d:\Users\ron\ncs\v2.0.0\nrf\samples\nrf9160\udp\build\generic:70) was assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies:
((!(NRF_SECURITY || NORDIC_SECURITY_BACKEND) && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-
generic.h" && MBEDTLS) || (MBEDTLS_HAS_CBC_OR_GCM_CIPHERSUITE_REQUIREMENTS && MBEDTLS_TLS_LIBRARY &&
NRF_SECURITY) || (!(NRF_SECURITY || NORDIC_SECURITY_BACKEND) && MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE
= "config-tls-generic.h" && MBEDTLS && 0)) (=n). See
docs.zephyrproject.org/.../kconfig.html and/or
look up MBEDTLS_KEY_EXCHANGE_PSK_ENABLED in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.
Cheers, Ron.