Solved
The %f floating point is not working properly in sprintf in my code, it put some garbage value
Hi all i am facing a problem with sprintf . the %u,%d are working fine in sprintf but the %f is throwing some garbage value in my code any thoughts please share me here. i have shared a snippet of my code over here.
float Channel_5_Volt;
Channel_5_Volt = ((float)Adc_5_Data/4095)*3.3;
sprintf(Buf,"adc0 %f \r\n", Channel_5_Volt);
HAL_UART_Transmit(&huart1,Buf, sizeof(Buf), 100);