Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

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


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs