Problems with USART2 Rx Callback with BLE_p2pServer_ota example
Hi,
i am using the BLE_p2pServer_ota example with NUCLEOWBA55 and i want transmitt a 20 Byte package over USART2 with DMA in circular mode (19200 Baud). Here as an example, i send 20 bytes every second via HTerm to USART2. BLE advertising (every 2s) is working (but i am not connected to the cellphone app).
The Rx Callback function is inside p2p_server_app.c and here i want to toggle the blue LED:
/* USER CODE BEGIN FD_LOCAL_FUNCTIONS*/
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
if(huart->Instance == USART2) // Rx Callback for USART2
{
BSP_LED_Toggle(LED_BLUE);
}
/* USER CODE END FD_LOCAL_FUNCTIONS*/But after several transmissions (between 50 and 150) the callback function is no longer called.
Does anyone have an idea what is going wrong?
