cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-STM32WB55 with X-NUCLEO-IHM03A1

SWenn.1
Senior III

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

 

 

1 REPLY 1
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.