Hi,
I am using Segger Embedded Studio and SDK version 15.2 for NRF52840 based module. NRF_LOG_INFO() works from main.c but not from custom drivers for sensors. Is there a way to enable logging from these files?
Thanks in advance
Hi,
I am using Segger Embedded Studio and SDK version 15.2 for NRF52840 based module. NRF_LOG_INFO() works from main.c but not from custom drivers for sensors. Is there a way to enable logging from these files?
Thanks in advance
In what way(s), exactly, does it "not work" ?
Do you get compilation errors? No output at runtime? corrupt output at runtime? or what ?
In what way(s), exactly, does it "not work" ?
Do you get compilation errors? No output at runtime? corrupt output at runtime? or what ?
Thanks for the response.
The code compiles okay, all the debug statements from main.c are displayed. Debug statements from other files are not displayed
When you say, "custom drivers for sensors" - are they Nordic files, or stuff you've written yourself from scratch, or sourced from elsewhere?
Sounds like you haven't (quite) got (all) the right headers included - so your NRF_LOG_s are expending to nulls?
You could check that either by looking at the preprocessor output, or by stepping in the debugger ...