Loading...
 

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 two short videos (registration required) highlighting:

System Workbench for STM32


Re: SW4STM32 or CubeMX to init STM32 device

France

Hi Elliott,

I just had time to look at the way CubeMX generates System Workbench projects; we are discussing the way to improve this, but, in the meantime, it is possible to import the code generated by CubeMX under System Workbench, although some features of System Workbench (like the integration with source code control) will not work as seemlessly as usual. We will provide a migration tool later if needed.

There is in fact two possibilities, that all imply that Eclipse will work directly on the files generated by CubeMX, in the folder where there were generated (so do not delete them once integrated in System Workbench):

  1. Import the project in an existing workspace; in this cas you should follow the standard procedure, but ensure you do not check “Copy projects into workspace”
  2. Use the folder where CubeMX generated its code (the folder that contains Application, Drivers, Xxxx Configuration...) as your workspace and Import... the project from this folder (the “Browse” button in the Import... dialog should automatically open the proper folder)

In both cases you should then be able to compile your project as usual, but be careful:

  • You may have to tailor the include search path for your project:
    • If you create new source files (e.g. usermain.c and usermain.h in the Application/User folder), these will be created in the project itself, and will not be side-by-side with the CubeMX-generated files
    • If you modify a CubeMX-generated file (e.g. main.c, to add an ‘#include usermain.h”’ line), it will be modified in its original location.
    • Then your project will no more compile, as usermain.h, although it looks like it is, is not in the same folder than main.c; to correct that you must add Application/User to the list of include file directories (project >> Properties >> C/C++ General >> Paths and Symbols)
  • Source code management
    • You can use GIT for source code management directly from Eclipse, however
      • When creating your local directopry you must not click the “Use or create repository in parent folder of project” but rather place it in the folder generated by CubeMX (the one that contains teh Application and Drivers subfolders)
      • Several folders in the project view will remain marked as “non-versionned” (with a blue question mark) as long as you do not create a local file in them (git do not version directories, just files).
    • You cannot directly use SVN for source code management of your project
      • You should first manually import the whole CubeMX-generated folder in your SVN repository (for example by using TortoiseSVN)
      • Then you may share your project from Eclipse, specifying as repository the root of your SVN repository (assuming you initially import everything in the trunk subfolder)

We apologize for the inconvenience; we are working with ST on a workaround to avoid these problems and smoothen your experience.

 

Newest Forum Posts

  1. Firmware Installation Process Issue by goymame, 04:56
  2. Project is locked out when deleted from Project Explorer by roland.berg@rolab.se, 2019-12-15 18:56
  3. Firmware Installation Process Issue by valkundesuyash@gmail.com, 2019-12-12 16:14
  4. STM32F746-Discovery by stanandrzej, 2019-12-12 13:55
  5. Can't debug by deksnys4life, 2019-12-12 08:16
  6. Can't download StdPeriph library during project creation by klopi90, 2019-12-09 08:46
  7. Building project - subdir.mk error by nupurkohadkar1997, 2019-12-06 18:10
  8. openOCD Wrong device detected by maxim221, 2019-12-06 12:32
  9. STM32429I_Discovery board with printf float support problem by johannes.visser@msc-technologies.eu, 2019-12-05 16:08
  10. malloc heap issue with CubeMX Project by johannes.visser@msc-technologies.eu, 2019-12-05 16:04

Last-Modified Blogs