AnsweredAssumed Answered

STM32CubeMX v4.14.0 doesn't preserve all user code

Question asked by Emil on May 19, 2016
Latest reply on May 24, 2016 by FTITI.Walid
In my linux stm32cubemx user code enclosed in
/* USER CODE BEGIN 0 */ ... /* USER CODE END 0 */
is preserved while user code enclosed in
// USER CODE BEGIN Includes ... // USER CODE END Includes
is not.

The difference seems to be just the type of comment (/* */ vs // ). Modifying  the comment type in the template files restored the functionality.

Outcomes