2020-12-17 08:30 PM
Hi Team,
Facing some issues on below
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
/* Prevent unused argument(s) compilation warning */
UNUSED(huart);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_UART_RxCpltCallback can be implemented in the user file.
*/
if (receivedata[0] == 'a')
{
HAL_UART_Transmit(&huart2,transmitData2,10,10);
HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_13);
HAL_Delay(1000);
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_13, GPIO_PIN_RESET);
}
2020-12-18 08:54 AM
HAL_UART_RxCpltCallback is likely called from the UART interrupt handler.
Do not use HAL_Delay in an interrupt handler.
-- pa