cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with advertising when using HAL_Delay in main funcion.

Kolab
Senior

Hello! I am trying to control a set of leds through bluetooth. In the main function ,after the main task I call the function that manage the leds and into this function there is HAL_Delay that has to receive its argument from bluetooth. The problem starts when I try to find the board using ST BLE Sensor app :

1) It takes a remarkable time to appear on the devices' list. When I connect successfuly to board then appear the second issue:

2) when I send the data (write characteristic) it also delays. How could I solve these delays?

22 REPLIES 22
Remi QUINTIN
ST Employee
 
Kolab
Senior

Hello Remi! Which basic presentations are you talking about? The application notes or the workshops? I have read Building wireless applications with

STM32WB Series microcontrollers.

Overloading the function void UTIL_SEQ_EvtIdle causes problems in the connection(the connection doesn't occur). I overloaded it like this:

void UTIL_SEQ_EvtIdle( UTIL_SEQ_bm_t task_id_bm, UTIL_SEQ_bm_t evt_waited_bm )

{

 UTIL_SEQ_Run( 1<<MY_TASK_ID );

}

Could you please comment the last file? I tried to implement the code "BLE Specific" in my BLE application but the file #include "FreeRTOSConfig.h" is not being found.

Kolab
Senior

do I have to generate BLE together with FreeRTOS?