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


You are viewing a reply to Adding new Include files  

Adding new Include files

-SOLVED-
OK I have found a way to work around the issue which I guess is a combination of CubeMX and Eclipse problem. Before I state the work around here is my perception of what is going on between CubeMX and Eclipse. CubeMX creates a project to hold the IP required to operate the micro along with the peripherals selected and the connections defined. I think it is intended that additional user code be kept separate from the CubeMX code. The faliing here is that the file tree to do this does not match the depiction in the Project tree in Eclipse. As additional source files are created the project tree shows the location as Project_Name>Application>User when if fact the additional source files are actually located at Project>SW4STM32>>Project_Name>Application>User. (location starting at WorkSpace_Name assumed).

The work around is:
1) create a new folder in the folder depicted in the project tree in Eclipse in Project_Name>Application>User called Inc (or whatever you want to call the folder for added include files). Now a real folder exists in which you can use the File>New>Source File to create from the templates a new .h file. Be aware that the actual file folder will reside at WorkSpace_Name>Project_Name>SW4STM32>Project_Name>Application>User.

2) Then select the project name in the project tree and click on Project(menu)>Properties>Settings and select in the Tool Settings tab select MCU GCC Compiler>Includes. in the Include Paths window select the Add Paths icon (picture of page with green arrow) and click on the WorkSpace button. Use the tree to navigate to the new folder you created and click OK. Note this will create a workspace relative path to the project name using internal Eclipse variables which is much better IMHO.