cancel
Showing results for 
Search instead for 
Did you mean: 

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

BTrem.1
Senior II

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

2 REPLIES 2
Laurent Ca...
Lead II

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
Chief II

> ...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.