Skip to main content
Visitor II
January 30, 2025
Question

STM32WB55RG USART/LPUART unavailable?

  • January 30, 2025
  • 1 reply
  • 1242 views

Hello, I am trying to set up this is STM to connect it to another microcontroller via LPUART. To my understanding USART1 is unusable since it is connected to J-Link. I have attempted with LPUART setting up both PA3 and PA2 pins as the respective TX and RX. I have been trying to print out "hello world" on tera term and on the STM32IDE console with no luck. Is it even possible to use LPUART for this? 

    This topic has been closed for replies.

    1 reply

    Super User
    January 30, 2025

    The STM32WB55RG is a chip. Are you dealing with the NUCLEO-WB55RG board?

    > Is it even possible to use LPUART for this?

    The LPUART on the STM32WB55RG certainly works and can be used to communicate with a serial converter or another MCU.

    Visitor II
    January 31, 2025

    Yes working with the nucleo board sorry first time using these. Just to clarify. So i set up the RX/TX pins (PC0/PC1) and then generate the code from there I added the line HAL_UART_Transmit(&hlpuart1, (uint8_t *)"Hello, STM32 UART!\n", 20, HAL_MAX_DELAY); into the while loop. I have not have no luck so far onto both tera term and the STM32IDE shell console. Note that I do want to use a Baud of 115200 and my clock is set as PCLK1 at 32Mhz  to LPUART. Sorry if im not making much sense. 

    Graduate II
    January 31, 2025

    So you are using PC0/PC1. But what are you using as an interface to connect Tera Term to the Nucleo board?

    Edit: I didn't see your last comment. So yes you need a USB to TTL adapter

    These adapters have switchable voltages, 3.3V and 5V

    https://amzn.to/3Cz2KRf

    https://amzn.to/3CvZF4o