2018-07-28 06:48 AM
Hello!
I try to print message from my Nucleo-L152RE board by USART2 to PuTTY, but see only black screen without symbols. On other side, my Windows 10 see Virtual COM and I can to burn the code to Nucleo board from EWARM. What I must to do to solve this problem ?
My regards,
Maksim
Solved! Go to Solution.
2018-07-28 12:03 PM
That was my next thought. The code you had posted only printed if there were an error with the task initialization.
Consider also connecting the SWO pin. I usually use both USART and SWV
2018-07-28 08:38 AM
>>What I must to do to solve this problem ?
You'd need to make sure the clocks, pins and peripheral are correctly configured.
Using HAL or SPL?
Hard to critique code I can't see..
2018-07-28 09:22 AM
2018-07-28 09:29 AM
2018-07-28 10:33 AM
/* USER CODE BEGIN 2 */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET);
{
char msg[] = "Hello World!";
HAL_UART_Transmit(&huart2, msg, strlen(msg), 100 );
}
...
2018-07-28 11:09 AM
Yes, it's standart Hello world code. But it's not working me. On this board. The problem not in the code, it's problem or in the board, or in the communication settings from board to my notebook.
2018-07-28 11:58 AM
I'm solved it ! This board was used and solder bridges SB13 and SB14 were removed and putted to SB62 and SB63. Tomorrow I will resold it...
2018-07-28 12:03 PM
That was my next thought. The code you had posted only printed if there were an error with the task initialization.
Consider also connecting the SWO pin. I usually use both USART and SWV
2018-07-28 12:12 PM
Thank you, Clive !