PlatformIO Community

Mbedtls linker issues

Hi, I’m having trouble with the linker when using AES functions provided by mbedtls:

undefined reference to 'mbedtls_aes_setkey_enc'
undefined reference to 'mbedtls_aes_crypt_cfb128'
undefined reference to 'mbedtls_aes_init'
undefined reference to 'mbedtls_aes_free'

My sdkconfig options:

CONFIG_MBEDTLS_HARDWARE_AES=y
CONFIG_MBEDTLS_AES_C=y

SOLUTION:
change sdkconfig to

# CONFIG_MBEDTLS_HARDWARE_AES is not set