2023-02-12 01:02 AM
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
However 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.
2023-04-24 07:21 AM
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