Dear Sir,
I am sending data over the UART. float Disp_array[37] is float array
Below line is used for sending data
UARTSend((char*)&Disp_array, sizeof(Disp_array));
Disp_array is float array. But i am getting only 17 byte on receiver side i.e terminal
Where as using below modified code I am getting the all bytes on the receiver i.e terminal
for(count_number=0;count_number<37;count_number++)
{
UARTSend((char*)&Disp_array[count_number], sizeof(Disp_array[count_number]));
for (x=0;x<=20000;x++);
}
The below is the array
void UARTSend(const unsigned char *pucBuffer, unsigned long ulCount)
{
// Loop while there are more characters to send.
while(ulCount--)
{
MAP_UARTCharPutNonBlocking(UART3_BASE, *pucBuffer++); // Write the next character to the UART.
}
}
Why simple UARTSend((char*)&Disp_array, sizeof(Disp_array)); is not working?