cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB do not print debug log in UART

YGail.2
Associate III

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.

1 REPLY 1
Remy ISSALYS
ST Employee

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