Skip to main content
IRakh.1
Associate III
March 31, 2023
Solved

For STM32WB to start transferring data in file p2p_server_app.c need push button SW1 in the Nucleo board, BUT how was created the variable - "CFG_TASK_SW1_BUTTON_PUSHED_ID"

  • March 31, 2023
  • 2 replies
  • 1394 views

I know that "CFG_TASK_SW1_BUTTON_PUSHED_ID" was set in the header file (/app_conf.h), but just set, no more

in the Datasheet the button for Nucleo board SW1 connected to a PC4 pin, but in CubeMX for project "p2p_server" I didn't find any mentions about the button SW1

so, How I can in the custom project to set the variable - "CFG_TASK_SW1_BUTTON_PUSHED_ID" for input PC4 or PC5

for example, see the code here

https://github.com/DavidStdio/STM32WB55_MEMS/blob/3036daab25fe711a5f2f7b37b1537f762bb832ea/Src/p2p_server_app.c

This topic has been closed for replies.
Best answer by Lubos KOUDELKA

Hello,

"CFG_TASK_SW1_BUTTON_PUSHED_ID" is variable used by sequencer (simple background scheduler used in STM32 BLE examples). You can find in the repository also simplified example without sequencer used, maybe it could be convenient starting point for your experiments. Please check:

https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Peripheral_Lite

Best regards,

Lubos

2 replies

Lubos KOUDELKA
Lubos KOUDELKABest answer
ST Employee
April 3, 2023

Hello,

"CFG_TASK_SW1_BUTTON_PUSHED_ID" is variable used by sequencer (simple background scheduler used in STM32 BLE examples). You can find in the repository also simplified example without sequencer used, maybe it could be convenient starting point for your experiments. Please check:

https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/P-NUCLEO-WB55.Nucleo/Applications/BLE/BLE_Peripheral_Lite

Best regards,

Lubos

Michael E
ST Technical Moderator
April 14, 2023

Hello,

Maybe the wiki article will help you on the P to P topic

Regards

Michael

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.