Unable to generate BLE trace in NRF52840, when enabling MBED Trace feature

ajayk
Wed, 20 Oct 2021 17:46:13 +0000
Mbed OS

I have enabled the MBED Tracing for my application and also compiled the application using the mbed-os debug profile and I don’t see any traces being generated on the COM ports. I am currently troubleshooting a hang when initializing the BLE stacking using the method below and the mbed_app.json has the following configuration set. I am currently on MBED-OS-5.15

{
   "target_overrides":{
      "*":{
         "mbed-trace.enable": true,
         "mbed-trace.max-level": "TRACE_LEVEL_DEBUG"
      }
   }
}

I am trying to figure out what in the BLE initialization process is causing the application to hang, within the CORDIO BLE Feature Code base. The code hangs when the BLE Init is invoked and is as shown in the code below.

//set the event handler.
 m_ble.gap().setEventHandler(this);
//init the BLE Stack.
m_ble.init(this,&TestBle::OnTestBleDeviceInitialized);

Thanks,
Ajay

7 posts - 3 participants