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

RTT overflow??

I've been instrumenting my Nordic app with RTT logging, which has been working great up until now. I use the deferred mode and use nrf_log_push() to queue all dynamic strings. These dynamic strings usually contain strings of hex numbers (e.g. "01 45 fe 23" etc.). Again everything has been working great until now.

But now I need to test with a much larger amount of data being delivered during a connection interval, and I get the crash shown in the screen shot. I've increased SEGGER_RTT_CONFIG_BUFFER_SIZE_UP to 1024 and NRF_LOG_DEFERRED_BUFSIZE to 1024 in sdk_config.h and it doesn't seem to help. These should be large enough to handle the RTT output occurring during one connection interval.

I don't have any idea how to debug the error shown in the attached image. Can you help?

Parents Reply
  • Setting to 2048 doesn't help at all, same symptoms. I can't set to 4096 or I run out of RAM. I tried to figure out how to decrease the stack size to get 636 bytes but is wasn't obvious how to do so. I'm using GNU tools and Eclipse. I'm using SDK12. Even with a sizeof 2048, RTT and logging are chewing up all my memory. I'll try to attach a map file, I'm not exactly sure how to.

Children
Related