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

Problem with combining I2C and SPI peripherals

Hi. I am a beginner with nrf52840. Trying to get SPI and an I2C peripheral working at the same time using the SEGGER Embedded Studio. I have working version of both the I2C peripheral and the SPI peripheral. Now I combined both peripherals and tried to build, but I am getting errors given below.

 

Building ‘twi_scanner_pca10056’ from solution ‘twi_scanner_pca10056’ in configuration ‘Release’
Compiling ‘adafruit_pn532.c’
Compiling ‘app_timer2.c’
nrfx.h
nrf_delay.h
app_timer2.c
'DRV_RTC_RTC1_INST_IDX' undeclared here (not in a function)
in definition of macro 'NRFX_CONCAT_3_'
in expansion of macro 'NRFX_CONCAT_3'
in expansion of macro 'DRV_RTC_INSTANCE'
app_timer.h
app_timer2.c
'app_timer_t' has no member named 'list_item'
in expansion of macro 'offsetof'
in expansion of macro 'CONTAINER_OF'
'app_timer_t' has no member named 'list_item'
in expansion of macro 'offsetof'
in expansion of macro 'CONTAINER_OF'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'end_val'
nrf_atfifo.h
app_timer2.c
'app_timer_t' has no member named 'handler'
in definition of macro 'ASSERT'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'active'
nrf_log.h
app_timer2.c
'app_timer_t' has no member named 'p_context'
in definition of macro 'LOG_INTERNAL_1'
in expansion of macro 'LOG_INTERNAL_X'
in expansion of macro 'LOG_INTERNAL'
in expansion of macro 'NRF_LOG_INTERNAL_MODULE'
in expansion of macro 'NRF_LOG_INTERNAL_DEBUG'
in expansion of macro 'NRF_LOG_DEBUG'
'app_timer_t' has no member named 'handler'
'app_timer_t' has no member named 'p_context'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'list_item'
'app_timer_t' has no member named 'list_item'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'end_val'
app_timer.h
app_timer2.c
'app_timer_t' has no member named 'list_item'
in expansion of macro 'offsetof'
in expansion of macro 'CONTAINER_OF'
'app_timer_t' has no member named 'list_item'
in expansion of macro 'offsetof'
in expansion of macro 'CONTAINER_OF'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'list_item'
nrf_log.h
app_timer2.c
'app_timer_t' has no member named 'end_val'
in definition of macro 'LOG_INTERNAL_2'
in expansion of macro 'LOG_INTERNAL_X'
in expansion of macro 'LOG_INTERNAL'
in expansion of macro 'NRF_LOG_INTERNAL_INST'
in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG'
in expansion of macro 'NRF_LOG_INST_DEBUG'
'app_timer_t' has no member named 'end_val'
in definition of macro 'LOG_INTERNAL_2'
in expansion of macro 'LOG_INTERNAL_X'
in expansion of macro 'LOG_INTERNAL'
in expansion of macro 'NRF_LOG_INTERNAL_INST'
in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG'
in expansion of macro 'NRF_LOG_INST_DEBUG'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'list_item'
nrf_log.h
app_timer2.c
'app_timer_t' has no member named 'end_val'
in definition of macro 'LOG_INTERNAL_2'
in expansion of macro 'LOG_INTERNAL_X'
in expansion of macro 'LOG_INTERNAL'
in expansion of macro 'NRF_LOG_INTERNAL_INST'
in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG'
in expansion of macro 'NRF_LOG_INST_DEBUG'
'app_timer_t' has no member named 'end_val'
in definition of macro 'LOG_INTERNAL_2'
in expansion of macro 'LOG_INTERNAL_X'
in expansion of macro 'LOG_INTERNAL'
in expansion of macro 'NRF_LOG_INTERNAL_INST'
in expansion of macro 'NRF_LOG_INTERNAL_INST_DEBUG'
in expansion of macro 'NRF_LOG_INST_DEBUG'
'app_timer_t' has no member named 'list_item'
'app_timer_t' has no member named 'handler'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'active'
'app_timer_t' has no member named 'p_context'
'app_timer_t' has no member named 'end_val'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'repeat_period'
'app_timer_t' has no member named 'active'
Compiling ‘nrf_atfifo.c’
Compiling ‘nrf_sortlist.c’
Build failed

Any idea why this would be happening?

Parents Reply Children
No Data
Related