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 (registration required) various documents highlighting:

System Workbench for STM32


How to program in c++ by AC6

Hi,
I am a new user in AC6. before this, I used the Keil IDE. in this IDE I could write my programs using c++ and every thing was good. Now I want to use AC6 for the sake of Being free but after taking alot of time I cannot use c++ files and calsses. So, I do appreciate if any one helps me (Basically how can I use c and c++ at the same time by AC6? ).

Thanks.

Hi,

To create a new C++ Project, Go to File > New > Project... > C/C++ > C++ Project. Enter the project name, then select as project type : Executable > Ac6 STM32 MCU Project and as Toolchains : Ac6 STM32 MCU GCC.
Your source files extension have to be .cpp to be built with the G++ Compiler.

For more details, follow this documentation page : http://www.openstm32.org/Creating+a+new+projectQuestion
(Instead of selecting “C Project”, choose “C++ Project”).



If your have created and imported your project from CubeMX, to convert your C project into C++ project: Right-click on your project, then select “Convert to C++” (ensure you have the latest version of System Workbench, this feature has been fixed recently (Help > Check for Updates...)).
Rename the source file extension into .cpp for the C++ code.

Hope it answer your problem,
Kevin

Dear Kevin,

Thank you for your fast answer. I have done it and it worked. But another problem, when I create a class it is possible to insert “HAL” library header file but I cannot use the “HAL” Functions (the functions are not recognized and I need to use them in form of c++ classes. Where is the problem? Also, I attached a snapshot of my project and I would be so thankful if you scren it and help me. Thanks for your consideration.

Omid


Please, save your files then build the project. After that, can you copy the console output to get more details on the error ?

I had a mistake. I did not know that I have to save the file before building because in the other IDEs ,which I work, they save automatically the project before building the code. So, now everything is good and it works well smile. But another questions, is there any way for using c++ functions and classes in “.c” files? Thanks for your time.

Omid,