It seems that CubeMX is getting better about retaining some of the Keil project settings upon regeneration of the code. There is an issue that I just came across. We sometimes use multiple named Project Targets in Keil. Would anybody have experience keeping the names intact when CubeMX regenerates code? All but the first have their name removed. With one extra target, the name just goes away. With multiple extra targets, all names go away, but the project won't open due to conflicting duplicate target names (which of course are all named nothing).