The main difference between the two file structures is the presence of the priv_include directory in the first structure and the absence of the priv_include directory in the second structure. Here’s a breakdown of the differences:
The imported actual packages project :
Generated following the guide with python gen.py -b custom_waveshare_7inch -o output_folder and put generated espressif/custom_waveshare_7inch folder into boards in SquareLine Studio installation folder
The components directory contains a subdirectory called ws_7inch, which represents a specific component or module.
Inside the ws_7inch directory, there are several files and directories, including CMakeLists.txt, idf_component.yml, LICENSE, pic.jpg, README.md, and ws_7inch.c.
The ws_7inch directory also contains an include directory, which further contains a subdirectory called bsp and includes the files esp-bsp.h and ws_7inch.h.
Additionally, there is a priv_include directory inside the ws_7inch directory, which includes the file bsp_err_check.h.
The main directory contains files and directories related to the main project, including CMakeLists.txt, idf_component.yml, main.c, and a subdirectory called ui.
The exported project when I clicked Export - Create Template Project :
The overall file structure is similar to the first structure, with the same files and directories present in the root directory (CMakeLists.txt, LICENSE, partitions.csv, README.md, and sdkconfig.defaults).
The components directory also contains the ws_7inch subdirectory, which includes similar files (CMakeLists.txt, idf_component.yml, LICENSE, pic.jpg, README.md, and ws_7inch.c).
However, in the second structure, the ws_7inch directory lacks the priv_include directory.
Inside the ws_7inch directory, there is an include directory that contains a subdirectory called bsp, which includes the file ws_7inch.h.
The main directory and its contents (including CMakeLists.txt, idf_component.yml, main.c, and the ui subdirectory) remain unchanged.
In summary, the main difference is the presence of the priv_include directory in the first structure and its absence in the second structure. This difference indicates that the exported project from the “Create Template Project” process does not include the priv_include directory or its contents.
Great! I can confidently affirm that the Board Support Package (BSP) and User Interface (UI) export functionality in SquareLine Studio (SLS) operates seamlessly when the board files are placed in the directory C:\Users\USERNAME\Documents\SquareLine\boards, as opposed to the previous location at C:\Program Files\SquareLine Studio 1.3.0\boards.