AnsweredAssumed Answered

Putty and STM32F0

Question asked by jobert.edouard on Aug 29, 2015
Latest reply on Aug 30, 2015 by Clive One
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.

Outcomes