Skip to main content
YGail.2
Associate III
February 12, 2023
Question

STM32WB do not print debug log in UART

  • February 12, 2023
  • 1 reply
  • 1621 views

The example project BLE_p2pServer ishas the debug interface configurated such as it is possible to see what is happening on the Wireless Stack.

For example

0693W00000YAX1IQAX.pngHowever if I use the project IOC file to make a new project I'm not getting any information.

Actually I'm entering in app_entry.c in the correct loop. The command    

 APP_DBG_MSG("Wireless Firmware version %d.%d.%d\n", WirelessInfo.VersionMajor, WirelessInfo.VersionMinor, WirelessInfo.VersionSub);

in void APPE_SysUserEvtRx is called. However APP_DBG_MSG return a printf which in this case do not print anything. I manage to get printf working using stdio.h in the main.c infinite while loop. Therefore I think I have to do the same for the BLE App side. But do not know where to define it.

Thx in advance.

I attached the IOC file used.

This topic has been closed for replies.

1 reply

Remy ISSALYS
Technical Moderator
April 24, 2023

Hello,

In app_entry.c file, in MX_APPE_Init function, add the call to following function in APPE_Init_1 user section to initialize the debug:

/* USER CODE BEGIN APPE_Init_1 */
 APPD_Init();
/* USER CODE END APPE_Init_1 */

Best Regards