Skip to main content
ADrag.2
Associate II
May 19, 2022
Solved

Attempting to use STM32CubeMX for the STM32WL55JC1 and I'm running into issues (bugs?)

  • May 19, 2022
  • 3 replies
  • 1201 views

Not sure if this is the right place to post about CubeMX issues, but I'm having issues replicating the STM32WL55JC1 PingPong example. What I'm doing is trying to mimic every setting that exists in the example project (because it works), but some options are not actually changeable for me.

First example is here:

https://i.gyazo.com/46cebf0b8e0474d6480bd82d7e154085.png

On the right, all visibility boxes are unchecked. But in the project I'm trying to recreate the example in, I can't uncheck any of the visibility (static) boxes. It just won't let me:

https://i.gyazo.com/fdbf32a95e3c9bc8f0c5031f6c70749d.png

Second thing is in my new project, cubemx refuses to generate any bsp files. So while in the example project I have the proper BSP files:

https://i.gyazo.com/935b6558b46ce70fcf1bc5664b50d254.png

My new project doesn't have anything:

https://i.gyazo.com/8262c8d5b3e15d0a99f31d7d17be4b09.png

(Notice the lack of a BSP folder)

Both projects also match the SubGHz_Phy middleware section exactly:

https://i.gyazo.com/742ffc953bb90f3844f407dc0403bc0f.png

So the BSP files should be getting generated. They just aren't.

As a result, my new project refuses to compile. Anything I can do to remedy this? Anywhere for me to file CubeMX bugs?

This topic has been closed for replies.
Best answer by Louis AUDOLY

Hello @ADrag.2​ ,

Yes as you said CubeMx does not generate BSP. To add it to your project you can add to your project the file ".extSettings" that you can find in project folder's in the STM32Cube_FW_WL_V1.2.0.

In this file you will find this code :

[ProjectFiles]
HeaderPath=..\[YOUR_PATH_TO_BSP_FOLDER]\BSP\STM32WLxx_Nucleo
[Others]
[Groups]
Drivers/BSP/STM32WLxx_Nucleo=../[YOUR_PATH_TO_BSP_FOLDER]/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c; ../[YOUR_PATH_TO_BSP_FOLDER]/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c

You just have to replace the path that match your directories to point to the Driver folder and it should work.

I will ask to know about the visibility of the functions and keep you updated.

Good luck and best regards

Louis

3 replies

ADrag.2
ADrag.2Author
Associate II
May 19, 2022

I see now that BSPs aren't generated by Cube, which is a bit deceptive since the alternative to using the bsp files are using user generated files. I still don't know where these files actually come from, but copying from the example project did the trick.

Louis AUDOLY
Louis AUDOLYBest answer
ST Employee
May 24, 2022

Hello @ADrag.2​ ,

Yes as you said CubeMx does not generate BSP. To add it to your project you can add to your project the file ".extSettings" that you can find in project folder's in the STM32Cube_FW_WL_V1.2.0.

In this file you will find this code :

[ProjectFiles]
HeaderPath=..\[YOUR_PATH_TO_BSP_FOLDER]\BSP\STM32WLxx_Nucleo
[Others]
[Groups]
Drivers/BSP/STM32WLxx_Nucleo=../[YOUR_PATH_TO_BSP_FOLDER]/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo.c; ../[YOUR_PATH_TO_BSP_FOLDER]/Drivers/BSP/STM32WLxx_Nucleo/stm32wlxx_nucleo_radio.c

You just have to replace the path that match your directories to point to the Driver folder and it should work.

I will ask to know about the visibility of the functions and keep you updated.

Good luck and best regards

Louis

ADrag.2
ADrag.2Author
Associate II
May 24, 2022

Thank you!