Skip to main content
SWenn.1
Senior III
December 12, 2024
Solved

Nucleo-STM32WB55 with X-NUCLEO-IHM03A1

  • December 12, 2024
  • 1 reply
  • 1476 views

Hello.

I am trying to port from a Nucleo-F401 board to the WB.  I have a desire to make USART1 on the WB as a comm port so I can pass data to it for testing some stuff.  I find it works well UNTIL I enable the BLE.  I notice in the app_debug.c file that it takes the MX_USART1_UART_Init() function and buries it with a DEBUG wrapper.  Can someone tell me how to configure CubeMX so as to use LPUART as debug and NOT UART1?  Many of the entries on the page you see in MX are greyed out and I cannot even select them to enable them.  Is this even possible to use USART1 for something other than debug as I want?  Find attached MX pdf.

Thanks

 

SWenn1_1-1734034500844.png

 

 

Best answer by STTwo-32

Hello @SWenn.1 

to configure LPUART1 for trace and not USART1 you have:

  • Enable LPUART1.
  • Set CFG_HW_LPUART1_ENABLED to Enabled (Please ensure that in ProjectManager Advanced Settings panel MX_LPUART1_UART_Init Not Generate Function call is ticked and that Visibility is unticked).
  • Set CFG_CONSOLE_MENU to No UART selected.
  • Set CFG_DEBUG_TRACE_UART to hw_lpuart1.

Best Regards.

STTwo-32

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
January 7, 2025

Hello @SWenn.1 

to configure LPUART1 for trace and not USART1 you have:

  • Enable LPUART1.
  • Set CFG_HW_LPUART1_ENABLED to Enabled (Please ensure that in ProjectManager Advanced Settings panel MX_LPUART1_UART_Init Not Generate Function call is ticked and that Visibility is unticked).
  • Set CFG_CONSOLE_MENU to No UART selected.
  • Set CFG_DEBUG_TRACE_UART to hw_lpuart1.

Best Regards.

STTwo-32