STM32CubeIDE: How to update Includes Folder in Project Explorer

1.8k Views Asked by At

I have a question about how to update Includes folder in a downloaded example from STM32 CubeMX.

Currently, I am working with LoRaWAN_End_Node example downloaded from STM32 CubeMX for the board Nucleo-WL55JC1. Based on that example, I want to add some of my files (both header and source files).

I want to ask how do I update Includes folder (in Project Explore) when I put new header files in the Inc directory (Inc is not shown in the Project Explorer tab).

I hope to have help from people in the community. enter image description here

Thank you, Huy Nguyen.

1

There are 1 best solutions below

1
On

It's been a while since you asked, but I hope it may help someone

First, I think that you need to build the solution in orded to the files to be added

What I usually do to add header (and source files) is to create a new folder, I add that folder path into the project (project properties -> C/C++ General -> Paths and symbols -> includes -> add), inside that folder I add the Inc and Src folders (Add them inside the STM32CubeIDE), and add those as source Locations (project properties -> C/C++ General -> Paths and symbols -> Source Locations -> add folder) Then copy the headers and source files that you might need (whit the windows explorer), finally build the project, when you build it the files will be added to the project.