Skip to main content
asala.19
Associate III
July 2, 2020
Question

How to enable debug messages in BLE_HeartRateFreeRTOS demo

  • July 2, 2020
  • 2 replies
  • 811 views

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

This topic has been closed for replies.

2 replies

Remi QUINTIN
Technical Moderator
July 31, 2020

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
Visitor II
August 25, 2020

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