Question
Problem with "HAL_UART_Transmit_IT" function
Hi, I've a problem with function HAL_UART_Transmit_IT.
If I call this function with global data array, there isn't a problem, but If I call it with a non global data array, I receive wrong data.
This is a sample code:
void SendData()
{
uint8_t s[10];
memset(&s, 0x10, 10);
HAL_UART_Transmit_IT(&huart2, &s[0], sizeof(s));
}This example gives problems, but if I move "uint8_t s[10]" out of function (make global) all works fine.
I don't understand the problem :(
I'm using IAR.
Some idea?
Thanks.
