Solved
printf %llu with error
Hi guys,
I'm executing the "printf" in CubeIDE to output uint64_t with "%llu", but the printout is wrong.
Why does it not support "%llu"?
However it can work well in Keil.
//debug.c
int __io_putchar(int ch) //Redirect printf to uart
{
HAL_UART_Transmit(&huart1, (uint8_t *)&ch, 1, 0xFFFF);
return (ch);
}
//main.c
int main()
{
//***
printf("%llu\r\n", (uint64_t)1 ); //Hope to output "1", but output "lu"
}