2015-12-29 04:17 AM
Hi all,
Hi All,I'm building a project in STM32Cube for Keil uVision 5. It's working fine. In next step I'm adding some new files in Keil, adding library path in Options for Target and when I have one more time Generate Code in Cube, all my settings disappear by new code. Is there any option in Cube to block it?It's really annoying when I have to do the same things in Keil every time when I Generating Code. #keil #stm32cubemx #stm32cube2015-12-29 05:00 AM
Hi chomnicki.marek,
Which CubeMX version are you using? If you are using an old version, I recommend you to use the latest: 4.12.0-Syrine-2015-12-29 08:23 AM
Hi,
I had 4.11. After update is the same.2015-12-29 04:04 PM
In CubeMX -> Project -> TAB [Code Generator] did you check ''Keep user code when generating''
2015-12-30 12:48 AM
Hi chomnicki.marek,
I cannot reproduce your issue. In fact, it was a known bug in the version 4.11 but then fixed in the 4.12 version.• For the option ''Keep user code when generating'', it is checked by default but also you can verify it.
• Be sure that MX 4.12 is correctly installed in your machine.
-Syrine-2016-04-18 06:16 PM
I see the same issue in version 4.14.
And it's not about deleting user code, but rather deleting groups/user files from a project.Here is what happens (Keil v.5.17): Create a new group in a Cube generated project, and add user files to this group.Regenerate code by the Cube. Custom group is deleted from a project along with files,though files are not actually deleted.Is there any way around it?Thank you,Gennady