2018-06-21 07:19 AM
hello
Iwant to display messages on Console.
I write printf but it is not displayed in the console
I am using Atollictruestudio .
What to do please ? is there a configuration I shoud make ??
Thank you in advance for your reply
2018-06-21 07:43 AM
STM32479I EVAL board? or something else?
Configure the USART/pins associated with the ST-LINK VCP, check schematic and/or manual
https://www.st.com/en/evaluation-tools/stm32479i-eval.html
Some implementations use syscalls.c, and provide the __io_putchar() function
#ifdef __GNUC__
/* With GCC, small printf (option LD Linker->Libraries->Small printf set to 'Yes') calls __io_putchar() */ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)#else #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)#endif /* __GNUC__ *//**
* @brief Retargets the C library printf function to the USART. * @param None * @retval None */PUTCHAR_PROTOTYPE{ /* Place your implementation of fputc here */ /* e.g. write a character to the EVAL_COM1 and Loop until the end of transmission */ HAL_UART_Transmit(&UART_Handle, (uint8_t *)&ch, 1, 0xFFFF);return ch;
}Or use ITM_SendChar(ch) to get out of the SWV via PB3/SWO
2018-06-21 11:08 AM
https://community.st.com/0D50X00009XkWF2SAN
'So perhaps you haven't correctly configured the right USART and pin, or you have forgotten to set the jumpers (JP15 and JP19 on the STM32479I-EVAL) to get the data out of the ST-LINK VCP vs the RS232 connector on the board.
USART1 PA9 and PA10'
2018-06-22 01:04 AM
Thank you for your reply
In fact I am using STM32439 Eval board for the moment
I did not get what you said well
2018-06-22 08:24 AM
The STM32439I-EVAL board would require the connection of the RS232 Serial port to a dongle.
Or are you talking about the SWV Viewer?