Printf on a Nucleo STM32F767ZI
I have a Cubemx generated app for a F767ZI nucleo board. I have added syscalls.c to the Src directory and a putchar function to main.c. But printf is still not outputting anything to screen. What am I missing ?
int __io_putchar(int ch) {
// Code to write character ‘ch’ on the UART
HAL_UART_Transmit(&huart1, (uint8_t *)&ch, 1, 0xFFFF);
return ch;
}