2024-02-04 08:14 AM
I had written a function to support printf() using USART3 for NUCLEO-F767ZI board. Please check the code below, but I did not see the prints on the console in STM32CudeIDE. Please let me know what the issue can be. Do I need to do any changes on the board to make it work?
int _write(int file, char *ptr, int len)
{
HAL_UART_Transmit(&huart3, (uint8_t*)ptr, len, HAL_MAX_DELAY);
return len;
}
2024-02-04 09:46 AM
Hello @rdevisetti
I suggest you to take a look at the FAQ: "How to redirect the printf function to a UART for debug messages"
Best regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-02-05 01:49 AM - edited 2024-02-05 03:31 AM
Before trying to integrate that into printf(), do you have the UART working on its own?
If the UART doesn't work on its own, it's not going to work via printf !
Use this button to properly post source code:
To get that extra row of icons, press this button: