Loading...
 

STM32MP1 support available in SW4STM32

   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 download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


You are viewing a reply to Using Git  

Using Git

France

Hi,

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)