Hi.
I recently started work on some projects where I have to use I2c OLED and BLE. I used OLED to display time which is running on an internal RTC of nrf52832.
Now I merge my Oled code with the ble_template example to advertise. But I got an error on app_timer2.c fie which is redirected some function to (drv_rtc.h).
how I try to solve this problem but fail,..
Add the path of the file
Enable timer
#ifndef APP_TIMER_ENABLED #define APP_TIMER_ENABLED 1 #endif
Error looks like:
from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:41: 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:162:19: error: 'app_timer_t' has no member named 'handler' 2> ../../../../../../components/libraries/util/nrf_assert.h:106:9: note: in definition of macro 'ASSERT' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:165:67: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:167:33: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:169:24: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:171:24: error: 'app_timer_t' has no member named 'active' 2> In file included from ../../../../../../components/libraries/log/nrf_log.h:81, 2> from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:59: 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:183:75: error: 'app_timer_t' has no member named 'p_context' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:145:70: note: in definition of macro 'LOG_INTERNAL_1' 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:280:9: note: in expansion of macro 'NRF_LOG_INTERNAL_MODULE' 2> ../../../../../../components/libraries/log/nrf_log.h:114:48: note: in expansion of macro 'NRF_LOG_INTERNAL_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:183:13: note: in expansion of macro 'NRF_LOG_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:184:20: error: 'app_timer_t' has no member named 'handler' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:184:37: error: 'app_timer_t' has no member named 'p_context' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:187:25: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:187:53: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:189:24: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:189:44: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:190:65: error: 'app_timer_t' has no member named 'list_item' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:196:61: error: 'app_timer_t' has no member named 'list_item' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:220:42: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:224:74: error: 'app_timer_t' has no member named 'end_val' 2> In file included from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer.h:71, 2> from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:40: 2> ../../../../../../components/libraries/util/app_util.h:191:32: error: 'app_timer_t' has no member named 'list_item' 2> ../../../../../../components/libraries/util/app_util.h:430:32: note: in expansion of macro 'offsetof' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:254:26: note: in expansion of macro 'CONTAINER_OF' 2> ../../../../../../components/libraries/util/app_util.h:191:32: error: 'app_timer_t' has no member named 'list_item' 2> ../../../../../../components/libraries/util/app_util.h:430:32: note: in expansion of macro 'offsetof' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:260:26: note: in expansion of macro 'CONTAINER_OF' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:274:19: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:340:28: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:340:55: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:345:36: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:348:77: error: 'app_timer_t' has no member named 'list_item' 2> In file included from ../../../../../../components/libraries/log/nrf_log.h:81, 2> from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:59: 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:356:91: error: 'app_timer_t' has no member named 'end_val' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:147:70: note: in definition of macro 'LOG_INTERNAL_2' 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:198:13: note: in expansion of macro 'LOG_INTERNAL' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:277:9: note: in expansion of macro 'NRF_LOG_INTERNAL_INST' 2> ../../../../../../components/libraries/log/nrf_log.h:154:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:356:17: note: in expansion of macro 'NRF_LOG_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:356:108: error: 'app_timer_t' has no member named 'end_val' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:148:24: note: in definition of macro 'LOG_INTERNAL_2' 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:198:13: note: in expansion of macro 'LOG_INTERNAL' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:277:9: note: in expansion of macro 'NRF_LOG_INTERNAL_INST' 2> ../../../../../../components/libraries/log/nrf_log.h:154:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:356:17: note: in expansion of macro 'NRF_LOG_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:410:36: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:412:35: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:413:77: error: 'app_timer_t' has no member named 'list_item' 2> In file included from ../../../../../../components/libraries/log/nrf_log.h:81, 2> from C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:59: 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:415:65: error: 'app_timer_t' has no member named 'end_val' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:147:70: note: in definition of macro 'LOG_INTERNAL_2' 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:198:13: note: in expansion of macro 'LOG_INTERNAL' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:277:9: note: in expansion of macro 'NRF_LOG_INTERNAL_INST' 2> ../../../../../../components/libraries/log/nrf_log.h:154:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:414:21: note: in expansion of macro 'NRF_LOG_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:415:90: error: 'app_timer_t' has no member named 'end_val' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:148:24: note: in definition of macro 'LOG_INTERNAL_2' 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:198:13: note: in expansion of macro 'LOG_INTERNAL' 2> ../../../../../../components/libraries/log/src/nrf_log_internal.h:277:9: note: in expansion of macro 'NRF_LOG_INTERNAL_INST' 2> ../../../../../../components/libraries/log/nrf_log.h:154:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:414:21: note: in expansion of macro 'NRF_LOG_INST_DEBUG' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:425:93: error: 'app_timer_t' has no member named 'list_item' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:567:8: error: 'app_timer_t' has no member named 'handler' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:568:8: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:577:12: error: 'app_timer_t' has no member named 'active' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:582:8: error: 'app_timer_t' has no member named 'p_context' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:583:8: error: 'app_timer_t' has no member named 'end_val' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:585:12: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:587:12: error: 'app_timer_t' has no member named 'repeat_period' 2> C:\nRF5_SDK_17.0.2_d674dde\components\libraries\timer\app_timer2.c:598:8: error: 'app_timer_t' has no member named 'active' Build failed
I use app_timer2.c file in library folder to
please give some suggestions to solve this issue