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

Thingy52 Costume Firmware - Logging Module Issue - Lagging BLE Notificatio

Hello Dev-Community,

I have modified the Thingy Firmware for a custom made board which has also the MPU9250 with TWI connected. Everything works fine, if i use RTT Viewer. But when i don't show the log, the ble service notification doesn't send any notification anymore. I believe it is, because the LOG Buffer is overflowing or something.

Some Information:
Uses SDK 13.0.0 with that Logging Module

SEGGER Studio IDE 4.01

Maybe someone experienced the same and can give me a good work around. 

Thanks for the Help,

Dominik Pflumm

Parents
  • I think when you do not open the RTT viewer, the buffer of the logs are overflowing causing a stack corruption. Please check in your sdk_config.h file to configure the logs buffer properly. 

    Make sure that you set this NRF_LOG_ALLOW_OVERFLOW to 1. So that the oldest log buffer can be overwritten. Even though it is set to 0, it should not spill out of the logs buffer, but i am suspecting that there might be a bug there (guessing)

    Increase NRF_LOG_BUFSIZE.

    Also do not have too many logs to print, split your logs into different categories (// <1=> Error ,// <2=> Warning,
    // <3=> Info,// <4=> Debug ) And only set NRF_LOG_DEFAULT_LEVEL that you want to print. 

Reply
  • I think when you do not open the RTT viewer, the buffer of the logs are overflowing causing a stack corruption. Please check in your sdk_config.h file to configure the logs buffer properly. 

    Make sure that you set this NRF_LOG_ALLOW_OVERFLOW to 1. So that the oldest log buffer can be overwritten. Even though it is set to 0, it should not spill out of the logs buffer, but i am suspecting that there might be a bug there (guessing)

    Increase NRF_LOG_BUFSIZE.

    Also do not have too many logs to print, split your logs into different categories (// <1=> Error ,// <2=> Warning,
    // <3=> Info,// <4=> Debug ) And only set NRF_LOG_DEFAULT_LEVEL that you want to print. 

Children
Related