Skip to main content
PBoym.1
Associate
December 11, 2020
Question

STML433RC (nucleo kit) LPUART1 not working

  • December 11, 2020
  • 2 replies
  • 818 views

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,

0693W000006FRE4QAO.pngI 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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
December 11, 2020

Not RS232 compatible levels​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PBoym.1
PBoym.1Author
Associate
December 11, 2020

OK for that but why I cannot see anything directly on the ST-LINK virtual com port ?