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

compiling date/time


I am using sw4stm32 for my stm32 controller. I would like to add compiling date/time into my output file (.hex or .bin). for example: I compile the program on 2022.Jan.12.1:18PM, so .hex or .bin file name should include projectname_20220112_118pm.hex or projectname_20220112_118pm.bin.

Does anybody know how to do it?



Hi Yang,

You can do that by changing the artifact name.

1- Right-click on your project to go to the Properties page
2- Go to C/C++ Build > Setttings then select the “Build Artifact” tab
3- Change the “Artifact name” into ${ProjName}_${current_date}

Not sure it will set the “pm” “am”, this might depends on your system.

Hope it answers your question.

Thank you for your reply. it works perfectly

I have another question, In the program, I use DATE and TIME to figure about the compiling date/time. sometimes, I found these two macro doesn’t update. Is it possible to pass this current_date to DATE and TIME.

and also I want to define some MACRO for my program, for example, like program name, version, and so, then I can get them from my program.

thank you again.


Newest Forum Posts

  1. SW4STM32 installation on Ubuntu 20.04 LTS by mahnac72, 2022-01-17 09:12
  2. STM32G0B1 support by Nevada, 2022-01-14 18:47
  3. compiling date/time by yang@omniverter.com, 2022-01-13 20:07
  4. compiling date/time by tang, 2022-01-13 10:51
  5. compiling date/time by yang@omniverter.com, 2022-01-12 19:19
  6. STM32429 Discovery board Linux problem by llcheng, 2022-01-10 10:38
  7. STM32F030K6T6 Pa7 Question by jobhunter, 2022-01-07 10:20
  8. System workbench how to configure openocd debug by gxz, 2022-01-03 15:49
  9. Auto generate build/version number by katarcza, 2022-01-01 11:00
  10. Charger firmware by kacio, 2021-12-30 09:04

Last-Modified Blogs