SystemView not working when bluetooth is enabled

Hi,

I like to analyze my custom BLE firmware thread activity, event, and timing using the Segger SystemView application. I have added the following configuration in prj.conf file.

CONFIG_STDOUT_CONSOLE=y
# enable to use thread names
CONFIG_THREAD_NAME=y
CONFIG_SEGGER_SYSTEMVIEW=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_TRACING=y
# enable for post-mortem tracing
CONFIG_SEGGER_SYSVIEW_POST_MORTEM_MODE=n

I get this configuration from the documentation. https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/services/tracing/index.html#segger_systemview_support

Programming/flasing the device with the above config, the device is not advertising. There is no activity in SystemView software. On debug I found that device is stuck in bt_enable function.

To verify the above case, I have added the same config in peripheral_lbs example and run in nrf52840DK (without any other changes). I am facing the same issue. No BLE advertisement and no LED blinking (which toggle in the main while loop of example). On debug I found it stuck at the same place, in bt_enable function.

When I bypass (remove BLE part from peripherl_lbs example), I can see the LED blinking and activity in Segger SystemView tool.

I am using nRF52840DK for both my custom BLE application and to run the example. I am using nRF Connect SDK v2.9.0.

Is there any other configuration required to add or change? Kindly help me to fix this issue.

Thanks,
Narendra.
Related