This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_LOG stops working after enabling softdevice

Hi, I can normally log with NRF_LOG_INFO(). But if i enable softdevice (bluetooth stack init) logging stops working. Interesting part is that there are several log lines before softdevice is enabled however none of them are shown if the code enables soft device.. And when i don't enable soft device all nrf_log functions work as expected. Using RTT logging. (52840, SDK15.0.0, S140 6.0.0)

Parents
  • Hi,

    Are you using Deferred processing? If you do it might be that something crashes your application, or that your application ends up in an endless while loop waiting for something to happen, but never gets to print out any messages. You should debug your code and figure out exactly how far it goes. My bet is that your code is stalling in a function. Shooting from the hip I'm guessing you are using a custom PCB or some sort of BLE module and that the softdevice is trying to start an external 32 kHz crystal that isn't there?

Reply
  • Hi,

    Are you using Deferred processing? If you do it might be that something crashes your application, or that your application ends up in an endless while loop waiting for something to happen, but never gets to print out any messages. You should debug your code and figure out exactly how far it goes. My bet is that your code is stalling in a function. Shooting from the hip I'm guessing you are using a custom PCB or some sort of BLE module and that the softdevice is trying to start an external 32 kHz crystal that isn't there?

Children
No Data
Related