Skip to content

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

Open
MindMil wants to merge 1 commit intocnoviello:masterfrom
MindMil:syncback
Open

Added a sync-back feature of copying modified Application files back to CubeMX#12
MindMil wants to merge 1 commit intocnoviello:masterfrom
MindMil:syncback

Conversation

@MindMil
Copy link

@MindMil MindMil commented Sep 30, 2017

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

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 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
2. Run cubemximporter normally
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant