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

Help with logging configuration error.

I thought I had the logging figured out but when I try to develop the application, I always seem to end up with the same error.

I don't understand what causes this and thought it was related to the order of the header files and something not being defined at the point ti is needed.

But after that path was unproductive I am running out of time and ideas.

I started from a simple ble_gatt example on a DK PCA10040 and then moved it to our custom board unmodified and successfully ran the logging.

Then I added our custom code that interfaces to a TI CC3100 wifi SoC.  In the process of adding that code, this errors happens :

2> J:\Users\clark\Desktop\Development\nRF5_SDK_1530\examples\ble_central\CC3100\main.c:1007:5: note: in expansion of macro 'CLI_Write'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:64:51: error: 'm_nrf_log_app_logs_dataconst' undeclared (first use in this function); did you mean 'm_nrf_log_app_logs_data_const'?
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:143:28: note: in definition of macro 'LOG_INTERNAL_0'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:138:33: note: in expansion of macro 'LOG_INTERNAL_X'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:208:13: note: in expansion of macro 'LOG_INTERNAL'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:125:34: note: in expansion of macro 'NRF_LOG_MODULE_ID_GET_CONST'
2> ../../../../../../components/libraries/util/nordic_common.h:116:31: note: in expansion of macro 'CONCAT_2_'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:67:42: note: in expansion of macro 'CONCAT_2'
2> ../../../../../../components/libraries/util/nordic_common.h:135:31: note: in expansion of macro 'CONCAT_3_'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:64:42: note: in expansion of macro 'CONCAT_3'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:67:51: note: in expansion of macro 'NRF_LOG_ITEM_DATA'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:125:63: note: in expansion of macro 'NRF_LOG_ITEM_DATA_CONST'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:181:53: note: in expansion of macro 'NRF_LOG_MODULE_ID'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:208:26: note: in expansion of macro 'LOG_SEVERITY_MOD_ID'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:262:9: note: in expansion of macro 'NRF_LOG_INTERNAL_MODULE'
2> ../../../../../../components/libraries/log/nrf_log.h:113:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INFO'
2> J:\Users\clark\Desktop\Development\nRF5_SDK_1530\examples\ble_central\CC3100\main.c:1023:5: note: in expansion of macro 'NRF_LOG_INFO'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:64:51: error: 'm_nrf_log_app_logs_dataconst' undeclared (first use in this function); did you mean 'm_nrf_log_app_logs_data_const'?
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:143:28: note: in definition of macro 'LOG_INTERNAL_0'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:138:33: note: in expansion of macro 'LOG_INTERNAL_X'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:208:13: note: in expansion of macro 'LOG_INTERNAL'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:125:34: note: in expansion of macro 'NRF_LOG_MODULE_ID_GET_CONST'
2> ../../../../../../components/libraries/util/nordic_common.h:116:31: note: in expansion of macro 'CONCAT_2_'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:67:42: note: in expansion of macro 'CONCAT_2'
2> ../../../../../../components/libraries/util/nordic_common.h:135:31: note: in expansion of macro 'CONCAT_3_'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:64:42: note: in expansion of macro 'CONCAT_3'
2> ../../../../../../components/libraries/log/nrf_log_instance.h:67:51: note: in expansion of macro 'NRF_LOG_ITEM_DATA'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:125:63: note: in expansion of macro 'NRF_LOG_ITEM_DATA_CONST'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:181:53: note: in expansion of macro 'NRF_LOG_MODULE_ID'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:208:26: note: in expansion of macro 'LOG_SEVERITY_MOD_ID'
2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:262:9: note: in expansion of macro 'NRF_LOG_INTERNAL_MODULE'
2> ../../../../../../components/libraries/log/nrf_log.h:113:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INFO'
2> ../../../simplelink/include/user.h:1006:23: note: in expansion of macro 'NRF_LOG_INFO'

The project is attached and I really need and appreciate the help.

I moved to sdk 15.3 in the hope I would leave some of the loggin problems I had in the past behind.

Clearly CC3100.zip I am missing one or more key concepts.

Parents Reply Children
No Data
Related