Morty Morty

Regression in latest STM32CubeMx: USE_FULL_ASSERT defined twice

Discussion created by Morty Morty on Jan 8, 2018
Latest reply on Mar 27, 2018 by Markus Schwarzl

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


  1. Wrong - because CubeMx generates uncommented code
  2. Very confusing, because if one comments out the code, it has no effect because USE_FULL_ASSERT is still defined in the other file.