CubeMXImporter icon indicating copy to clipboard operation
CubeMXImporter copied to clipboard

Added a sync-back feature of copying modified Application files back to CubeMX

Open MindMil opened this issue 7 years ago • 0 comments

This feature simply copies Application files from Eclipse folder back to CubeMX. It is useful in cases when you want to make some changes in CubeMX project and not loose your user code when you generate CubeMX again. Using this feature you may add your own code in sections marked by "/* USER CODE ..." in Eclipse and then still have them after regenerating the code in CubeMX. For this to work the flag "Keep User Code when re-generating" must be set in CubeMX's Project->Code Generator settings. The workflow to update CubeMX configuration and retain user code is following:

  1. Run cubemximporter with the --syncback argument
  2. Generate new code in CubeMX
  3. Run cubemximporter normally

MindMil avatar Sep 30 '17 13:09 MindMil