BLE Custom Application Issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 1:29 PM
Hello,
I have been following the tutorial STM32CubeMX Application Conception for making a custom BLE server with my P-Nucleo-WB55. I am using version 6.9.2 of STM32CubeMX. Everything works until section 7, where server notifications and write management with GPIO are configured.
The tutorial uses BUTTON_SW1_PIN and LED_BLUE macros, which do not seem to exist. The tutorial also uses BSP_LED_ON() and BSP_LED_OFF(), which I cannot find declarations for. What should I do?
Perhaps this is a silly issue with a quick fix, but I am concerned that STM32CubeMX is changing the structure and organization of their code generator. If this is the case, would you suggest rolling back to the 6.4.0 version (which the tutorial has success using) of the STM32CubeMX and sticking with that same version for development?
Any help will be appreciated. Thank you.
Solved! Go to Solution.
- Labels:
-
BLE
-
STM32CubeMX
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-04 2:35 AM
Hello @RCM1 and welcome to the ST Community :smiling_face_with_smiling_eyes:.
I suggest you try the following options:
- Change BUTTON_SW1 by SW1_USER.
- Change LED_BLUE by Blue_Led.
- Use HAL_GPIO_WritePin() function to SET and RESET the pin used by the LED to set ON and OFF the LED instead of BSP_LED_ON() and BSP_LED_OFF().
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-04 2:35 AM
Hello @RCM1 and welcome to the ST Community :smiling_face_with_smiling_eyes:.
I suggest you try the following options:
- Change BUTTON_SW1 by SW1_USER.
- Change LED_BLUE by Blue_Led.
- Use HAL_GPIO_WritePin() function to SET and RESET the pin used by the LED to set ON and OFF the LED instead of BSP_LED_ON() and BSP_LED_OFF().
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-04 6:00 AM
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-06 11:49 PM
Hi RCM1,
Which version of STM32Cube Firmware Package are you using, please?
Joé
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-07 6:42 AM
I am using the latest available version: 1.17.3
