This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTT & NRF_LOG_ENABLED=0

Hello,

We use SEGGER_RTT_ReadNoLock() in our code, and this works perfectly. Our nRF is connected to a DK, which is connected to a computer.

However, when we compile with NRF_LOG_ENABLED=0, RTT isn't working anymore. It is a bit hard to know what's going on since JLinkExe doesn't seem to notive.

I suspect there is a relationship between the two, since we also use logging over RTT (SWD) to debug; but I did not find a way to fix it.

Would you have any ideas? Maybe other flags to set/unset?C

Thank you very much.

Parents
  • Hey john,

    In your case, since you have not initialized RTT anywhere in the program, the RTT is configured properly when you initialize the logger module. Then it is expected that it does not work when NRF_LOG_ENABLED is 0.. Kindly try initializing RTT.

    Regards,

    Swathy

Reply
  • Hey john,

    In your case, since you have not initialized RTT anywhere in the program, the RTT is configured properly when you initialize the logger module. Then it is expected that it does not work when NRF_LOG_ENABLED is 0.. Kindly try initializing RTT.

    Regards,

    Swathy

Children
Related