cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable debug messages in BLE_HeartRateFreeRTOS demo

asala.19
Associate III

Hi,

Can any one guide me how can i enable debug messages in BLE_HeartRateFreeRTOS demo.

i have enable below macro but doesn't get any success

#define CFG_DEBUGGER_SUPPORTED  1

#define CFG_DEBUG_BLE_TRACE   1

#define CFG_DEBUG_APP_TRACE   1

#define CFG_DEBUG_TRACE_LIGHT   1

Please help me what i am missing i need debug print come from

APP_DBG_MSG and BLE_DBG_HRS_MSG.

Thanks,

Arjun

2 REPLIES 2
Remi QUINTIN
ST Employee

Could you please try with the new CubeWB FW package V1.8 avaible on our web site?

Setting the #define to 1 should be enough.

Hugues DE CARVALHO
Associate III

Hi Arjun,

I advise you change the CFG_*** in CubeMX under Middleware -> STM32_WPAN.

You will notice that you can only enable CFG_DEBUGGER_SUPPORTED if Sys Debug is enabled.

If you only want to display the logs, enabling:

#define CFG_DEBUG_BLE_TRACE   1
#define CFG_DEBUG_APP_TRACE   1
#define CFG_DEBUG_TRACE_LIGHT   1

should work.

I however observed that logs aren't be outputed when compiling with CubeIDE. The same project would output logs when compiled with IAR.

I am investigating this issue, I will get back to you if I find a fix.

Best Regards,

Hugues