Question
Putty and STM32F0
Posted on August 29, 2015 at 19:58
Hello,
I have some questions (they might seems easy to you, but not to me).Im using a STM32F0 discovery and I want to read the USART2 data with putty.Since the USART2 is not directly connected to the PC, I don't know which COM is it, do I have to use a UART ->Serial adaptor between the UART and the PC to use putty ?Do I have to use printf with putty or a function like this will automatically display the data on putty ? :uint8_t Usart2Read(void){ while ( USART_GetFlagStatus(USART1, USART_FLAG_RXNE) == RESET); return (uint8_t)USART_ReceiveData(USART2);}Thanks a lot for your help.