Do not operate the printf() after reboot
Hello, everyone.
I am using STM32H753 and STM32CubeIDE.
I tried to use the printf () function, but nothing was displayed at the terminal.
After seeing an Internet example, I added the following code to use printf():
int _write(int file,char *ptr, int len)
{
HAL_UART_Transmit(&huart1, (uint8_t*) ptr, len ,10);
return len;
}When I downloaded the code, my code normally performed a printf() function.
But when I turned it off and on (reboot) the terminal was not marked with anything.
If the code is downloaded again after reboot, the printf() operates normally.
Why won't the printf() work after the reboot?