In the latest Version of STM32CubeMx USE_FULL_ASSERT is set in main.h AND USE_FULL_ASSERT. If enabling assertions in STM32CubeMX the additional comment
* @brief Uncomment the line below to expanse the "assert_param" macro in the * HAL drivers code
- Wrong - because CubeMx generates uncommented code
- Very confusing, because if one comments out the code, it has no effect because USE_FULL_ASSERT is still defined in the other file.