AnsweredAssumed Answered

Uart in STM32F4

Question asked by saba.ramin on Jan 31, 2015
Latest reply on Feb 6, 2015 by saba.ramin
I create a program for uart interrupt receiving by cubeMX in ARM-MDK.
I want interrupt receivng from PC(when for example 0xFF received from pc by hyperterminal or docklight).
I write bellow program.
main()
{
   while (1)
   {
        if(HAL_UART_Receive_IT(&huart6, (uint8_t *)aRxBuffer, 8) != HAL_OK)
       {
            HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_13);
            HAL_Delay(0x000000ff);
       }
        HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_12);
        HAL_Delay(0x000000ff);
    }
}

///////////////////////////////////////////////////

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *UartHandle)
{
    HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_15);
}


but not work.Please help me.



Outcomes