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

NRF_LOG enabled on DFU BLE disables NRF_LOG in main application

Hello:

We had a main application with NRF_LOG using RTT as its backend, and it was working great. We are using the BLE_DFU and recently added NRF_LOG capabilities to this bootloader. However, it seems that now the RTT/NRF_LOG stops working when the application jumps from the bootloader to the main application!

Bootloader "main.c" init:

Main application code

Parents
  • That's normal. You just have to type "connect" again when the bootloader jumps to the main app.

  • Hello:

    Thank you for your response! I have tried what you said, but when I type something while on the application side I get a "Warning: Sent 0 of 8 Bytes". It seems the RTT is not sending anything while on the application! Is there any code that must be done on the App side to make this work?

    For now I prefer this solution than the link you provided as it fits more with our current system.

    Thanks!

  • : For now I prefer this solution than the link you provided as it fits more with our current system.

    By solution, are you referring to the connect again suggestion by Andy?

  • That is correct, however I tried typing "connect" and receive the "Warning: Sent 0 of 8 Bytes" error/issue.

  • It could be that RTT_Viewer is using the wrong RTT structure in RAM, the bootloader will create one and the application will create one, and I think RTT viewer or similar will search first structure located in RAM which likely is the bootloader's.  

Reply
  • It could be that RTT_Viewer is using the wrong RTT structure in RAM, the bootloader will create one and the application will create one, and I think RTT viewer or similar will search first structure located in RAM which likely is the bootloader's.  

Children
No Data