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

How to add files to an MX generated project


Hi folks,
The problem you have, if you want to manually add support for additional firmwares in a CubeMX-generated project, for now, is due to the way CubeMX creates the Ac6 System Workbench project: if places the project in a sub-directory (SW4STM32/project Configuration), where it creates sub-trees (Application, Drivers) in which it links the needed source files, keeping the original files in folders you do not see as they are not in the project.

So to add an HAL driver to your project you should:

  1. Drivers/STM32xxxxx_HAL_Driver >> New >> File
  2. In the dialog that opens click on Advanced then Link to file in the file system
    Link File To Project Dialog
  3. Then click Variables...
    Select File With Variable
  4. Click Extend... to be able to brows your system starting from the selected location (here the current workspace)
    Extending A Variable
  5. Select the file you need (here stm32f4xx_hal_cryp.c), then clivk OK and Finish

Now your new driver will be included in the project and compiled although it will not be initialized or configured, and you will have to take care of this manually...

So another way to go may be to use CubeMX; however this suppose that you only modify CubeMX-generated files in the sections bracketted by /* USER xxxx BEGIN */ and /* USER xxxx END */ comments (otherwise your changes will be overwriten by CubeMX):

  1. Close your project in Ac6 System Workbench for STM32 (project >> Close Project)
    • You may also close Ac6 System Workbench for STM32 itself
  2. Reopen your CubeMX project (the .ioc file)
  3. Modify your CubeMX project
    • Add the new devices and/or firmwares,
    • Assign pins to the new devices
    • Change configuration settings for your project
  4. Re-generate your project
  5. Re-open your project

Then all the changes you’ve done in CubeMX will appear in Ac6 System Workbench for STM32 and initialization code will be present to configure and initialize your new devices.

Hope this helps,



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