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


Solved - Adding a Source Folder Changes it to Static Library and creates VFP error

Hi,
I’ve got several pairs of *.c *.h files that i use as my custom libraries that i copy into my project’s folder. I then proceed to add it as a source folder as given inthe FAQ.

However, instead of showing a ‘C’ symbol for source folder, it displays a pinned icon like in a static library upon compiling. After compiling i get VFP errors due to different FPU setting used for this particular folder, which i cant change!

How do I add a source folder and make sure this doesnt happen? How to make ac6 realize this is NOT a static lib?

Dear Shreeyak
Here is the way I am using to add folders/files into my project’s folder :

  • Using Windows Explorer, I copied a folder containing several files;
  • I pasted it in my project’s folder (in the Project Explorer window of SW4STM32);
  • Right-click to open the build properties dialog for this new folder (folder >> Properties >> C/C++ Build) and uncheck the Exclude resource from build checkbox;


Using these steps, the new files are properly compiled.
Note : the new files are part of the project. The new folder is not seen as a library.
The new code will be included in the final object code, as the linked does not know how to choose what is really needed.

I made trials but I cannot reproduce the issue you faced, so feel free to give more details :

  • How do you copy the files into your project’s folder?
  • How do you add it as a source folder?

I use Git to manage my project. I set up my custom libraries as a subtree.
Moment i pull in my subtree, git adds the files into the root directory of the project.
I use the method mentioned in the FAQ to add my folder ( File->New->Source Folder ) which worked perfectly well earlier.

I tried checking and unchecking the “exclude from build” option in folder properties as mentioned, but that didnt help.

However, I deleted the files and added them again as given by you above, but the folder did not get added to the include path. I simply added the path in Project->Properties->C/C++ Build->Settings->Tool Settings-> MCU GCC Compiler->Includes.
That did the trick and now my files are compiling properly. I dont know why it was giving an error earlier.

Sw4stm32 Add Include Path

Thank you for helping out, this method is working now. Do you also have to manually add the include path in properties like i have to do?


Edited the post’s Title

Hello Shreeyak,
I do not use GIT. I will make a trial.
Any way, No, I didn’ t add any include path.
Usually, I force the update of the indexer : Right-click on your project >> index >> Rebuild;