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

NRF52840 Hangs after certain bytes of NRF_LOG_INFO (SDK - 17.1.0)

Hi, I am using MCP2515 lib from https://github.com/DejanBukovec/NRF5-SDK-MCP2515 

So far example is working when i connect Jlink RTT viewer throughout the testing.

When I disconnect RTT Viewer then NRF_LOG_INFO("BUF0") present in infinite for(;;) is not printing and device hangs over there, but if RTT viewer is connected then no issues and it works seamlessly.

Any suggestions?

Check the sdk_config.h for reference.

Parents
  • Are you using deferred log processing ?

    Have you seen components/libraries/log/nrf_log_ctrl.h

    /** @brief Macro for processing all log entries from the buffer.
     * It blocks until all buffered entries are processed by the backend.
     *
     * @note If logs are not deferred, this call has no use and is empty.
     */
    #define NRF_LOG_FLUSH()      NRF_LOG_INTERNAL_FLUSH()
    

     

Reply
  • Are you using deferred log processing ?

    Have you seen components/libraries/log/nrf_log_ctrl.h

    /** @brief Macro for processing all log entries from the buffer.
     * It blocks until all buffered entries are processed by the backend.
     *
     * @note If logs are not deferred, this call has no use and is empty.
     */
    #define NRF_LOG_FLUSH()      NRF_LOG_INTERNAL_FLUSH()
    

     

Children
Related