Trying to make a simple UART usage project, with interrupts
So i tried to build this little project, generated with STM32CubeMX.
The only line of codes i wrote were
void UART5_IRQHandler(void)
{
HAL_UART_Receive(&huart5,&box,3,500);
HAL_UART_Transmit(&huart5,&box,3,500);
}
where box is an extern uint8_t array of 3 elements.
When i try to build this unfortunately i get 2 errors on these 2 function calls. They both say ‘error: subscripted value is neither array nor pointer nor vector’.
Can somebody help me point out what i did wrong here?
Thanks in advance.