CubeIDE embedded MX code generation delete custom preprocessor symbols
In my CubeIDE 1.5.1 project I have proprietary custom defined symbols that deleted every time I generate the code from IOC.
How can I protect them from being removed?
In my CubeIDE 1.5.1 project I have proprietary custom defined symbols that deleted every time I generate the code from IOC.
How can I protect them from being removed?
MBEDTLS_CONFIG_FILE="mbedtls_config.h" is device configuration tool (aka. STM32CubeMX) reserved. Such symbol is introduce by tool if selecting MBEDTLS middleware.
Such is reserved because required if such middleware set and has to be removed if unset.
Hopefully if doing custom setup out of device configuration tool you have a way to force it being preseved. See https://www.st.com/resource/en/user_manual/dm00104712-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf
You have to add a .extSettings file at your project root.
Content of such file is in your case:
[Others]
Define = MBEDTLS_CONFIG_FILE:"mbedtls_config.h"
Please note ':' char is not a typo ... you will see such is set to '=' if build settings on the fly
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.