SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32

Using Git


I want to use git as version control tool. How do I have to set up the repository in order not to loose all includes?

Thanks for a small hint.




Git integration in System Workbench for STM32 is inherited from Eclipse.

First you must install the Eclipse Git Team Provider plugin and Java Implementation of Git, if not yet installed (in category Collaboration); you may also choose to install the Command Linne Interface for Java implementation of Git plugin, but this is usually not needed.

You probably, if on Windows, should install TortoiseGit, so that you can interact with Git from the Windows Explorer; on Linux, git should be already installed, but otherwise you may have to install it.

Then the way to manage a project under Git will depends on what kind of project you want to manage.

  1. Managing a project created by the System Workbench Wizard
    • If it is a project created by the System Workbench for STM32 wizard, you can just create a repository and import your project in it: Team >> Share Project, then select Git; there you should be able to create a new repository, located where you want, and import your project, possibly in some subdirectory of the repository.
    • Note however that only files contained in the shared project are saved in teh Git repository; if there are files located elsewhere on your disk that are linked into your project, these will not be managed by Git (although the link definition will be as the project file is managed).
  2. Managing a project generated by CubeMX
    • If you imported a project generated by CubeMX, currently, you cannot manage it simply directly from System Workbench. You should create a repositoy and add to it the whole directory tree created by CubeMX; this has to be done from outside System Workbench, for example using TortoiseGit on Windows or the git command line interface tools on Linux. Then your project should appear under System Workbench for STM32 as Git-managed (you must either restart SW4STM32 or at least close then reopen the project).
    • Also, if you want to fetch a CubeMX-generated project from Git, you should for now check-out th ewhole CubeMX generated tree using an external tool (Tortoise Git or the command line) before manually importing the project, as described in Importing a STCubeMX generated project.
    • A future release of CubeMX, scheduled for the end of the first quarter of 2016, should correct this and allow to fully manage your projects from System Workbench for STM32.
  3. Managing a program imported from mBed
    • If you imported an mBed project (using the procedure described in Importing an mbed program, as the System Workbench project is created by the wizard, this should work flawlessly with git.

Bernard (Ac6)

i use git with CubeMX project in eclipse w/o any problem , external tool are not necessarly required ( maybe just simpler).
how to do it all in eclpise
have your project Generated by CubeMX (do not use option to link all file but instead copy all or only require file to project)
in eclipse create a new project with new -> project - (generic project )
in the dilaog
untick “default location”
give the project a name
then browse to the CubeMX top tree folder
et git it
Now project-> team ->Share

to keep git repo on the same place/ folder tick “use or create repository in praent folder of project ”
in dialog bottom use “create”

voila ... all done , commit everyhing straigh away (select all files)
Now you can import the ac6 proejct from the source tree in git repo view (import existing prioject)
if gire repo view is not visible “window ->show view ->other -> git -> repo ...”

Take care eclispe easily mess up if you open the same file mutliple time (ie the one from the top project and the same linked from ac6 project).
to avoid that simply close or delete( just from explorer view do not delete from file system) top project

note thay under window Mysgit or some mingw-msys package ( https://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/)Question provide git/svn/... command line .

if you want to keep include form an example cube (not cubemx) project it is not so easy/possible as all project link files to the same local library source , so it woudl require to version everything to get include (and all drivers midleware etc source as well) :-(

Thanks for the hints. I tried the method of diabolo38 and it worked nicely.