I inherited a Nordic project that is running on the 52832 board with the 15.3 version of the SDK. The project uses CLI, TWI, and logging. The developer has to jump through hoops to get all 3 functioning at the same time. I am now expanding the project. The issue. NRF_LOG_INFO works fine if I provide a constant string (e.q. NRF_LOG_INFO("Hello world");)
However, the minute I create a generic logging utility which uses non-stack memory (using data segment memory - statically declared array), only the last logged data is printed several times.
so something like
I have read the chapter on logging and think I understand the buffering concept on the front and back end. I have tried messing with the sdk_config.h to no avail. Here are what I think are relevant:
All my CLI commands and output work great.