2020-12-11 03:10 AM
Hello,
I have generated a default project with cubeIDE for a nucleo L433RC. I have only enabled LPUART1 with default parameters. I just change the baud rate to 115200.
I add in the main :
/* Infinite loop */
/* USER CODE BEGIN WHILE */
char out[64] = "TOTO";
while (1)
{
HAL_UART_Transmit(&hlpuart1, (uint8_t*)out, 5, HAL_MAX_DELAY);
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
(There is no error handling but I checked the output of the function with the debugger).
According to that figure,
I should see informations on USB serial but there is nothing. I have connected a RS232 probe on LPUART1 Pins (PC0 and PC1). I can observe a signal but not what I am trying to send (ESH EM ESH EM ESL GS ... on my serial consol). Could you please tell me what I miss ? (Even if it looks like, it is not a baud rate error on my serial consol)
Thanks.
2020-12-11 04:41 AM
Not RS232 compatible levels
2020-12-11 05:21 AM
OK for that but why I cannot see anything directly on the ST-LINK virtual com port ?