2020-09-10 07:18 AM
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!