Project TARGET setting issues
I am experiencing a problem with SW4STM32 pertaining to the Target MCU selection, that you access via:
Project (menu) -> Properties -> C/C++ Build (list) -> Settings (list) -> Target (tab)
On the Target tab page (tab marked with blue-and-white STM butterfly logo), there are dropdown lists for “Series”, “MCU” and (if available) “Board”.
I often find that if I attempt to change the MCU setting, esp. if there is no available “Board” for it, that the setting is NOT applied to the project/configuration. This is true even after explicitly selecting the Apply or OK buttons on the Property dialog.
I realize that one normally selects the target MCU when a project is first created. This works without issue. I am also aware of the potential risks in changing the Target setting on a pre-existing project. However, there are cases where I need to be able to change the target MCU after a project is created. One example of this is a project that shares a common code base targeted to multiple hardware platforms. I am working on several projects that fall into this category. I make use of Eclipse’s multiple “Build Configuration” feature to set target-specific global defines, file paths, compiler, link and other build options - including the target MCU.
All of the various options (at least those that I’ve needed to change on a target/build configuration basis) appear to work correctly; the changes made to them are applied to the currently selected build configuration. However, the settings on the Target tab are not saved. If I change a setting on the Target tab, apply it, then navigate off that tab and come back to it, I find that the setting I just selected has reverted back to its original value.
This issue is not something that is new with the latest version of SW4STM32 (using v13.0 at present) - it is something that has been a problem since I started using SW almost 2 years ago.