cancel
Showing results for 
Search instead for 
Did you mean: 

STML433RC (nucleo kit) LPUART1 not working

PBoym.1
Associate II

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.

2 REPLIES 2

Not RS232 compatible levels​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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