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

You can try implementation from MbedOS 6 BLE if also working under MbedOS5, but probably not.

BR, Jan