CubeMXImporter
CubeMXImporter copied to clipboard
Added a sync-back feature of copying modified Application files back to CubeMX
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:
- Run cubemximporter with the --syncback argument
- Generate new code in CubeMX
- Run cubemximporter normally