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

Migration from SDK 12 to SDK 15 problem with NRF_LOG

Hi,

I am currently trying to setup my sdk 15 on my pca10040. I already have a working I2C source for a BME280 and it works fine using the SDK 12 (pca10040), I get the current temperature and it is displayed via Serial Port terminal.

When I debug my adapted source on SDK 15 I can see, that I receive data from my Sensor and everything works as expected, but I don't get any NRF_LOG's on my serial port sniffer...

So I guess that there must be some NRF_LOG differences between the sdk12 and 15 which I wasn't able to locate, that causes that behavior.

Does anyone have an idea?

Regards

Parents Reply
  • I did not change a thing in my sdk_config.h file,so it is the original one from sdk 15.0.0 it is initialized just like in the TWI_Sensor example:

    Those are the only few lines used in my application

    bme280_twi_measurement_get(&data);
        NRF_LOG_INFO("Temperature: " NRF_LOG_FLOAT_MARKER " degrees Celsius.\r\n",
                NRF_LOG_FLOAT(((float)data.temp)/100));
        NRF_LOG_FLUSH();
    }

    int main(void)
    {
        APP_ERROR_CHECK(NRF_LOG_INIT(NULL));

        NRF_LOG_INFO("BME280 TWI sensor example\r\n");
        NRF_LOG_FLUSH();

    Regards

Children
Related