Skip to main content
BTrem.1
Senior
February 17, 2021
Question

How best to handle managing code projects with /* USER CODE BEGIN/END xxxx */

  • February 17, 2021
  • 2 replies
  • 633 views

In some cases I have found that code is needed where there is not a USER CODE section. I've also inherited such code. What is the best way to manage this in a project? If I generate new code from the Mx Cube file I end up overwriting needed code.

Manually comparing files between two folders and making edits is a recipe for disaster. How are others handling this?

BT

This topic has been closed for replies.

2 replies

Laurent Ca...
Senior III
March 2, 2021

Dear @BTrem.1​ 

I think this question is not related to STM32 Motor Control.

I remove this tag (but not STM32CubeMX tag).

Please refer to STM32CubeMX documentation.

Best regards

==

Laurent Ca...

Piranha
Principal III
March 6, 2021

> ...is a recipe for disaster. How are others handling this?

Isn't the answer obvious? When you are capable of actually developing non-trivial code, you don't need a broken bloatware generator, which limits your code to some incompetent design.