Skip to main content
heifetsg
Associate
September 11, 2016
Question

Change static library target device in SW4STM32

  • September 11, 2016
  • 1 reply
  • 670 views
Posted on September 11, 2016 at 10:16

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?
    This topic has been closed for replies.

    1 reply

    Walid FTITI_O
    Visitor II
    September 22, 2016
    Posted on September 22, 2016 at 17:21

    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.

    0690X00000604TmQAI.png

    Good Luck

    -Hannibal-