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


Cannot build example projects (from STMCubeF4), includes seem to be missing

Hello, I have a huge problem while trying to run examples from STMCubeF4 software kit in SW4STM32.
What I do - I import project using: File->Import->General>Existing projects into workspace
I tried both with Template and GPIO_Toggle projects for STM32446E-Nucleo.
With both I get a lot of errors in ‘Problems’ tab.
Examples of errors:

Symbol ‘RCC’ could not be resolved system_stm32f4xx.c /STM32446E_Nucleo/Drivers/CMSIS line 165
Type ‘uint32_t’ could not be resolved system_stm32f4xx.c /STM32446E_Nucleo/Drivers/CMSIS line 165
Field ‘PLL’ could not be resolved main.c /STM32446E_Nucleo/Example/User line 128

It seems, that somehow SW4STM32 does not recognize header files.
Indeed, when in for example main.c, I can hover over #include “main.h” and it gives me:
Unresolved inclusion: “main.h”

Besides I cannot build the project, because it ust prints:

”**** Build of configuration Debug for project STM32446E_Nucleo ****
Nothing to build for project STM32446E_Nucleo”

I tried to Right click the project, then go to “Index” and click in all options available, leaving the “Rebuild” option for the last. This did not solve the problem.


How can I fix those two issues?

Hi, I made the same but I didn’t get these errors. Please, may you give the Cube software version (FW_F4_V1.13.1) and the SW4STM32 version?



Hello Pole92,
The last SW4STM32 version is the V1.11.
I suggest to enable the notifications for the automatic updates in the Window menu :
Windows menu >> Preferences >> Install/Update >> Automatic Updates >> Enable automatically find new updates and notify me
You may also check fo updates : Help menu >> Check for Updates
Note : you have to configure the Network connection if you are using a proxy :
Windows menu >> General >> Network Connections

About the GPIO project from the Cube FW package V1.13, here are my steps :
I launch SW4STM32 and I select the following workspace :
...\STM32Cube_FW_F4_V1.13.0\Projects\STM32446E-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32
- Right-click >> Import >> General >> Existing Projects into Workspace >> Next >> Browse >> Select STM32F4xx-Nucleo folder in the STM32Cube_FW_F4_V1.13.0\Projects\STM32446E-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32 folder >> Finish
- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Enable parallel build >> Apply >> OK
- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Settings >> MCU GCC Compiler >> Dialect >> ISO C99 >> Apply >> OK
- Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ General >> Indexer >> Enable project specific settings >> Remove the Index unused headers >> Apply >> OK
- Right-click on the STM32F4xx-Nucleo project >> Index >> Rebuild
- Right-click on the STM32F4xx-Nucleo project >> Build Project => Build Ok (Text section = 3340 bytes)
About the GPIO project from the Cube FW package V1.13, here are my steps :
I launch SW4STM32 and I select the following workspace :
...\STM32Cube_FW_F4_V1.13.0\Projects\STM32446E-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32
- Right-click >> Import >> General >> Existing Projects into Workspace >> Next >> Browse >> Select STM32F4xx-Nucleo folder in the STM32Cube_FW_F4_V1.13.0\Projects\STM32446E-Nucleo\Examples\GPIO\GPIO_IOToggle\SW4STM32 folder >> Finish
- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Enable parallel build >> Apply >> OK
- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Settings >> MCU GCC Compiler >> Dialect >> ISO C99 >> Apply >> OK
- Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ General >> Indexer >> Enable project specific settings >> Remove the Index unused headers >> Apply >> OK
- Right-click on the STM32F4xx-Nucleo project >> Index >> Rebuild
- Right-click on the STM32F4xx-Nucleo project >> Build Project => Build Ok (Text section = 3340 bytes)


Hi Vetch,
I was wrong with SW4STM32 ver. 1.8; apparently I have downloaded http://www.ac6-tools.com/downloads/SW4STM32/install_sw4stm32_win_64bits-latest.exeQuestion so I guess I have the latest available :-)

I followed along the points you have specified ->
I selected the workspace, imported the project, however, I was not able to find the fields specified in:
”- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Enable parallel build >> Apply >> OK
- (Optional) Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ Build >> Settings >> MCU GCC Compiler >> Dialect >> ISO C99 >> Apply >> OK ”

After doing “- Right-click on the STM32F4xx-Nucleo project >> Properties >> C/C++ General >> Indexer >> Enable project specific settings >> Remove the Index unused headers >> Apply >> OK ” - basically, nothing has changed.


Headers are still missing and the project does not build -
’**** Build of configuration Debug for project STM32F4xx-Nucleo ****

Nothing to build for project STM32F4xx-Nucleo’’

Attached you will find a screenshot showing the number of mising/unknwn variables.

Do you know what I am doing wrong?

Hello,

Can you try the menu Help => Check For Updates to check that the newest plugin versions are installed.
Because v1.8 installer has only installed 1.8.0 plugin versions and now it is 1.11.0 as said by Vetch.

Thanks,
Laurent


Hello, please may you post the screenshot of the include paths (see mine in attachment) :
- Right-click on your project >> Properties >> C/C++ Build >> Settings >> MCU GCC Compiler >> Includes



Hi Pole92,
These settings are part of the project.
It is really weird .... it should be present if you imported the project are described previously.
May you check the followings :
- the java version you are using : in a Windows terminal window / command prompt, type java -version;
- SW4STM32 plugin version : Help menu >> About Eclipse >> Ac6 button (Blue butterfly)? ... you should get Version: 1.11.0.....;
If not, it would be wise to check for update : Help menu >> Check for update,
but I think you already did it, so please, may you check the network settings (especially if you are using a proxy) :
Window menu >> Preferences >> General >> Network Connections;
- May you check any special characters or spaces in the Eclipse installation path or in the workspace path?
- Are you using Windows 7, Windows 10, ...?

Hello Vetch,
thank you so much for your commitment.

I am going to leave a note for future readers.

Here is how I managed to successfully import and build an example project:
1. I uninstalled SW4STM32 and deleted STMCubeF4 folder.
2. I reinstalled SW4STM32 and created an empty project using STM HAL
3. STMCube was not detected, so I downloaded it via Project creation wizard.
4. I imported an existing project into workspace.

Everything works now.

Regards,
Pole92