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


Include folder doesn't work well

Hello,
I have ported a BACnec stack from IAR to AC6. All works well if I place all the include in the Inc folder.
Then I have added a new folder called BACnet_inc, and I have moved some include files from Inc to this new folder.

I went to Proprety > C/C++ BUILD >setting, and I added the new folder to the include path.
Then I cleared the project and rebuild it but, some file can’t see the includes in the new folder, so the build fail.

I went also to Proprety > C/C++ GENERAL> Path and symbols --> Include, and added BACnet_inc there, but the build still fail.

Anyone know what’s the problem ?

I have attached the project that works, but If I move some include to BACnet_inc it doesn’t compile.

Thanks
Riccardo

Hi Riccardo,

In Properties > C/C++ General > Path and symbols > Include, try adding ${ProjDirPath}/BACnet_inc and check “Add to all configurations” and “Add to all language”. Then select the newly added entry and move it up (Move Up button) to the top.

Hope it helps.
Kevin.
ac6

Hi Kevin,
I tried your solution but it doesn’t work for me.

I have attached the Debug folder and seems that BACnet_inc still not included.

Thanks
Riccardo

Hi,

I can’t find your attached document. Can you send it again ?

Can you also copy the console output ?

Regards,
Kevin.

Hi again,

I’ve just analyzed the log and something is weird on the build commands:

On every working build command, you have the option -I”C:/Users/..../Porting STM32F4xx/BACnet_STM32/BACnet_inc”

On the command line which fails, this option is missing.

Did you modify the properties specifically on the directory “BACnet_object” ? If so, please do same actions that on my previous post, but this time, go to the properties by right-click on the “BACnet_object” folder.

Hope it solve the problem.
BR,
Kevin.

Hi,
I have noticed that there was a “key” over the the BACnet_object folder, so I reset the default options for that folder. Then I include again ${ProjDirPath}/BACnet_inc and all seems work.

Thanks for the help.

Riccardo