[Error] @0,0: L6218E: Undefined symbol

I all of a sudden I started getting these linker errors. Just this one project gets the errors, other project based on the same target works. I reverted to a previous build and still get errors (linked properly before commit). I reinstalled Studio and OS 6.13.0, same result.

No networking or TLS usage in the project.

Anybody have an idea where to start looking?

Thanks,
Tim

Mbed Studio 1.4.1
Mbed OS 6.13.0
Target: SNII_HUB_MAIN based on STM32H743ZI

[Warning] @0,0: L3912W: Option ‘legacyalign’ is deprecated.
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_add_source (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_pk_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_pk_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_pk_parse_key (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_platform_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_platform_teardown (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_close_notify (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_dtls_cookies (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_handshake_timeout (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_max_version (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_min_version (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_own_cert (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_handshake_step (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_session_reset (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_timer_cb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crt_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crt_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crt_parse (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/Thread/thread_bootstrap.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_finish_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_starts_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_update_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_sha256_clone (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/TLS/tls_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_oid_get_numeric_string (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_ciphersuites (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_export_keys_ext_cb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_verify (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_tls_prf (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crl_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crl_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crl_parse (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_crt_check_extended_key_usage (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_x509_parse_subject_alt_name (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_aes_crypt_ecb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_aes_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_aes_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_aes_setkey_enc (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_hmac_finish (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_hmac_starts (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_hmac_update (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_info_from_type (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_md_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_conf_transport (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/DTLSSocketWrapper.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/TLSSocketWrapper.o).
[Error] @0,0: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/TLSSocketWrapper.o).
Warning: L3912W: Option ‘legacyalign’ is deprecated.
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_random (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ctr_drbg_seed (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_entropy_add_source (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_entropy_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_entropy_func (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_entropy_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_pk_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_pk_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_pk_parse_key (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_platform_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_platform_teardown (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_close_notify (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_authmode (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_ca_chain (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_dtls_cookies (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_handshake_timeout (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_max_version (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_min_version (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_own_cert (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_rng (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_defaults (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_config_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_handshake_step (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_read (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_session_reset (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_bio (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_timer_cb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_ssl_write (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_x509_crt_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_x509_crt_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_x509_crt_parse (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/coap-service/source/coap_security_handler.o).
Error: L6218E: Undefined symbol mbedtls_sha256_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/Thread/thread_bootstrap.o).
Error: L6218E: Undefined symbol mbedtls_sha256_finish_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
Error: L6218E: Undefined symbol mbedtls_sha256_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
Error: L6218E: Undefined symbol mbedtls_sha256_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
Error: L6218E: Undefined symbol mbedtls_sha256_starts_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
Error: L6218E: Undefined symbol mbedtls_sha256_update_ret (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/6LoWPAN/ws/ws_pae_controller.o).
Error: L6218E: Undefined symbol mbedtls_sha256_clone (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/TLS/tls_lib.o).
Error: L6218E: Undefined symbol mbedtls_oid_get_numeric_string (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_ciphersuites (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_export_keys_ext_cb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_verify (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_ssl_tls_prf (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_x509_crl_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_x509_crl_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_x509_crl_parse (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_x509_crt_check_extended_key_usage (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_x509_parse_subject_alt_name (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.o).
Error: L6218E: Undefined symbol mbedtls_aes_crypt_ecb (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
Error: L6218E: Undefined symbol mbedtls_aes_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
Error: L6218E: Undefined symbol mbedtls_aes_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
Error: L6218E: Undefined symbol mbedtls_aes_setkey_enc (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls_adapter.o).
Error: L6218E: Undefined symbol mbedtls_md_free (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_hmac_finish (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_hmac_starts (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_hmac_update (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_info_from_type (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_init (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_md_setup (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/hmac/hmac_md.o).
Error: L6218E: Undefined symbol mbedtls_ssl_conf_transport (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/DTLSSocketWrapper.o).
Error: L6218E: Undefined symbol mbedtls_ssl_handshake (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/TLSSocketWrapper.o).
Error: L6218E: Undefined symbol mbedtls_ssl_set_hostname (referred from BUILD/SNII_HUB_MAIN/ARMC6/mbed-os/connectivity/netsocket/source/TLSSocketWrapper.o).
Finished: 0 information, 1 warning and 68 error messages.

Hey, I am facing the same problem. How were you able to solve this? Thanks in advance

If I remember correctly it had to do with using the .mbedignore file to reduce compile times. I think I ended up adding the following to .mbedignore to get rid of a reference.

mbed-os/platform/randlib/*

Let me know if that helps.