Question
printf() not working
I have used this method many times on this board (Nucleo-H743ZI) to transmit printf() to usart3 using the following:
int __io_putchar(int ch) {
/* e.g. write a character to the USART3 and Loop until the end of transmission */
HAL_UART_Transmit(&huart3, (uint8_t*) &ch, 1, 0xFFFF);
return ch;
}
[...]
printf("hello world\n")
However, it has now stopped working in my project. HAL_UART_Transmit() still works fine but printf never seems to call __ioputchar.
This same thing is working on my project with the STM32H7B3I-DK, using usart1.
Any Ideas what could've happened?
