2016-09-11 01:16 AM
Hi,
I use the SW4STM32 IDE and would like to create a generic static library.When I go to New Project tab and select static library in ''Project type'', I can create ''Ac6 STM32 MCU GCC'' or ''Cross GCC'' project.Naturally I go to the Ac6 project and then I have to select the target MCU. The problem begins, when I want to change the target MCU. There is a warning not to do that, and even if I try to change the target in the settings, the target won't change.The advice is to create a new project, but that would be difficult if I want to use the library on many projects.I think I could create GCC project by referencing the toolchain and everything else, but it looks like an inefficient way.I would like to ask if there a good way to change library target device?2016-09-22 08:21 AM
Hi heifets.gregory,
The warning appeared is normal to take you aware that some workspace related configuration ./setting should be changed too. Check the following : * Update the symbols inside the setting panel to make your project portable on the new device (see figure below) * Check if you have any defines/preprocessor on you code that should be updated with new device * Ensure that your static library totally support new device. Good Luck -Hannibal-