cancel
Showing results for 
Search instead for 
Did you mean: 

FW_F4_V1.25.1 Compil error when using LwIP + MBEDTLS (with FreeRTOS) - snmpv3_mbedtls.c:136:9: error: implicit declaration of function 'mbedtls_cipher_set_padding_mode'

Ede S
Associate III

I just activated LwIP and MBEDTLS over my STM32F427 project, just after migrating it to STM32Cube_FW_F4_V1.25.1 software version, and after code generation I get a compilation error (no customization at all):

Middlewares/Third_Party/LwIP/src/apps/snmp/snmpv3_mbedtls.c:136:9: error: implicit declaration of function 'mbedtls_cipher_set_padding_mode'; did you mean 'mbedtls_cipher_get_cipher_mode'? [-Werror=implicit-function-declaration]

This function is declared in cipher.h, but disabled if MBEDTLS_CIPHER_MODE_WITH_PADDING is not defined.

MBEDTLS_CIPHER_MODE_WITH_PADDING is defined in cipher.h if MBEDTLS_CIPHER_MODE_CBC is defined.

MBEDTLS_CIPHER_MODE_CBC is defined in mbedtls_config.h, but commented:

/**
 * \def MBEDTLS_CIPHER_MODE_CBC
 *
 * Enable Cipher Block Chaining mode (CBC) for symmetric ciphers.
 */
//#define MBEDTLS_CIPHER_MODE_CBC

Do you know if there is any bug in STM32Cube software package, or do I only miss some expected configuration?

Thank you for any help!

0 REPLIES 0