# BSP (Board Support Package) not the latest version

**URL:** <http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264>\
**Category:** Bugs\
**Created:** [May 19, 2023, 3:59am UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264 "2023-05-19T03:59:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![christine](http://forum.squareline.io/user_avatar/forum.squareline.io/christine/32/731_2.png) [@christine](http://forum.squareline.io/u/christine)\
**Post date:** [May 19, 2023, 3:59am UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/1 "2023-05-19T03:59:08Z")

</div>

The latest version of Custom Waveshare 7inch is `v1.0.1` (check link [esp-bsp/SquareLine/boards/custom\_waveshare\_7inch/components/ws\_7inch at master · espressif/esp-bsp · GitHub](https://github.com/espressif/esp-bsp/tree/master/SquareLine/boards/custom_waveshare_7inch/components/ws_7inch)).

However, the built in included BSP in Squareline Studio is `v1.0.0`. The generated code is not the latest version.

## What I tried

I have also tried to add the BSP myself through adding the BSP file by putting the generated BSP in the `SquareLine Studio 1.3.0\boards` path. However, SLS does not recognizes the newer version.

---

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [May 19, 2023, 7:32am UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/2 "2023-05-19T07:32:44Z")

</div>

Did you run [gen.py](https://github.com/espressif/esp-bsp/blob/master/SquareLine/gen.py) to get the actual packages for SLS?

---

<div class="post-metadata">

**Author:** ![christine](http://forum.squareline.io/user_avatar/forum.squareline.io/christine/32/731_2.png) [@christine](http://forum.squareline.io/u/christine)\
**Post date:** [May 19, 2023, 8:06am UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/3 "2023-05-19T08:06:33Z")

</div>

## Breakdown of the differences

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](https://github.com/espressif/esp-bsp/tree/master/SquareLine/boards/custom_waveshare_7inch) 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
- [idf\_component.yml](https://github.com/espressif/esp-bsp/blob/master/SquareLine/boards/custom_waveshare_7inch/components/ws_7inch/idf_component.yml) of the component is `v1.0.1`
- 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.

## File structure

The imported actual packages project :

```shell
.
| CMakeLists.txt
| LICENSE
| README.md
| sdkconfig.defaults
|
+---components
| \---ws_7inch
| | CMakeLists.txt
| | idf_component.yml
| | LICENSE
| | pic.jpg
| | README.md
| | ws_7inch.c
| |
| +---include
| | \---bsp
| | esp-bsp.h
| | ws_7inch.h
| |
| \---priv_include
| bsp_err_check.h
|
\---main
    | CMakeLists.txt
    | idf_component.yml
    | main.c
    |
    \---ui
            README.md

```

The exported project when I clicked `Export - Create Template Project` :

```shell
.
| CMakeLists.txt
| LICENSE
| partitions.csv
| README.md
| sdkconfig.defaults
|
+---components
| |
| \---ws_7inch
| | CMakeLists.txt
| | idf_component.yml
| | Kconfig
| | LICENSE
| | pic.jpg
| | README.md
| | ws_7inch.c
| |
| \---include
| |
| \---bsp
| ws_7inch.h
|
\---main
    | CMakeLists.txt
    | idf_component.yml
    | main.c
    |
    \---ui

```

---

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [May 22, 2023, 12:41pm UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/4 "2023-05-22T12:41:03Z")

</div>

It’s really interesting, to be honest I have no idea how can it happen that only one folder is missing.  
We have tried it on Linux and Windows and it worked well in both cases.

I guess you have tried to export it again.

---

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [May 22, 2023, 12:44pm UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/5 "2023-05-22T12:44:02Z")

</div>

Oh, we have any idea! Did you put the board files to `C:\Users\USERNAME\Documents\SquareLine\boards`?

Be sure you don’t have it in `C:\Program Files\SquareLine Studio 1.3.0\boards`.

---

<div class="post-metadata">

**Author:** ![christine](http://forum.squareline.io/user_avatar/forum.squareline.io/christine/32/731_2.png) [@christine](http://forum.squareline.io/u/christine)\
**Post date:** [May 22, 2023, 3:32pm UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/6 "2023-05-22T15:32:07Z")

</div>

For several months, I have consistently placed the board files in the directory `C:\Program Files\SquareLine Studio 1.3.0\boards`.

> Copy generated `espressif/custom_waveshare_7inch` folder into `boards` in SquareLine Studio installation folder.

According to the guidance provided in the documentation [esp-bsp/README.md · GitHub](https://github.com/espressif/esp-bsp/blob/master/SquareLine/boards/custom_waveshare_7inch/README.md), it appeared that the aforementioned location was the designated destination for the board files.

> The board packages need to be copied to the **boards** folder of SquareLine Studio.

Furthermore, the documentation on [Open Board Platform (OBP) | SquareLine Studio](https://docs.squareline.io/docs/obp/#:~:text=The%20OBP%20feature%20allows%20you,screen%20in%20the%20Create%20menu.) lacks explicit instructions regarding the precise path for storing the Board Support Package (BSP) board files.

---

<div class="post-metadata">

**Author:** ![christine](http://forum.squareline.io/user_avatar/forum.squareline.io/christine/32/731_2.png) [@christine](http://forum.squareline.io/u/christine)\
**Post date:** [May 22, 2023, 3:41pm UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/7 "2023-05-22T15:41:59Z")

</div>

> [@kisvegabor](#):
>
> Oh, we have any idea! Did you put the board files to `C:\Users\USERNAME\Documents\SquareLine\boards`?
> 
> Be sure you don’t have it in `C:\Program Files\SquareLine Studio 1.3.0\boards`.

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`.

---

<div class="post-metadata">

**Author:** ![kisvegabor](http://forum.squareline.io/user_avatar/forum.squareline.io/kisvegabor/32/537_2.png) [@kisvegabor](http://forum.squareline.io/u/kisvegabor)\
**Post date:** [May 23, 2023, 9:45am UTC](http://forum.squareline.io/t/bsp-board-support-package-not-the-latest-version/1264/8 "2023-05-23T09:45:20Z")

</div>

Great! 🎉  
Thank you for the feedback. We will update the docs.
