Trying to make a simple UART usage project, with interrupts
Hi,
As, in C, the name of an array is in fact a pointer to its first element, in your code, the second parameter to HAL_UART_Receive/Transmit (which should be a pointer to a uint8_t) is a pointer to an array of uint8_t, which is in fact a pointer to a (litteral) pointer to an uint_t, so the error (which is quite informative, as it says that it can’t index the address of an array).
Here you should just pass box (and not &box).
Bernard (Ac6)