cancel
Showing results for 
Search instead for 
Did you mean: 

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"

IRakh.1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Lubos KOUDELKA
ST Employee

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

View solution in original post

2 REPLIES 2
Lubos KOUDELKA
ST Employee

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 Employee

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.