How to setup printf to print message to console
Hello. I have STM32F767ZI nucleo board. I have created a new project and used default setup for the nucleo board. It have automatically set up some peripherals for me
In my code, I want to print the debug messages to the console:
while (1)
{
/* USER CODE END WHILE */
HAL_Delay(1000);
printf("hello");
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}But the printf is not working. I remember doing simmilar excersise in the class and it did not require any additional setup.
Can someone help me understand how printf works and how to set it up? Do I need to dedicate USART port for it?
